mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-23 05:49:07 +02:00
15 lines
426 B
Go
15 lines
426 B
Go
package bind
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/client/iface/wgbackend"
|
|
nbnet "github.com/netbirdio/netbird/client/net"
|
|
)
|
|
|
|
// TODO: This is most likely obsolete since the control fns should be called by the wrapped udpconn (ice_bind.go)
|
|
func init() {
|
|
listener := nbnet.NewListener()
|
|
if listener.ListenConfig.Control != nil {
|
|
*wgbackend.ControlFns = append(*wgbackend.ControlFns, listener.ListenConfig.Control)
|
|
}
|
|
}
|