mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-23 22:38:36 +01:00
13 lines
293 B
Go
13 lines
293 B
Go
|
package bind
|
||
|
|
||
|
import (
|
||
|
wireguard "golang.zx2c4.com/wireguard/conn"
|
||
|
|
||
|
nbnet "github.com/netbirdio/netbird/util/net"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
// ControlFns is not thread safe and should only be modified during init.
|
||
|
*wireguard.ControlFns = append(*wireguard.ControlFns, nbnet.ControlProtectSocket)
|
||
|
}
|