mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-12 09:50:47 +01:00
Single Mux
This commit is contained in:
parent
eaf985624d
commit
314f34f916
@ -88,8 +88,7 @@ type Engine struct {
|
||||
|
||||
wgInterface *iface.WGIface
|
||||
|
||||
iceMux ice.UniversalUDPMux
|
||||
iceHostMux ice.UDPMux
|
||||
iceMux ice.UniversalUDPMux
|
||||
|
||||
// networkSerial is the latest CurrentSerial (state ID) of the network sent by the Management service
|
||||
networkSerial uint64
|
||||
@ -210,12 +209,6 @@ func (e *Engine) Start() error {
|
||||
}
|
||||
e.iceMux = iceMux
|
||||
|
||||
/*iceHostMux, err := bind.GetICEHostMux()
|
||||
if err != nil {
|
||||
return err
|
||||
}*/
|
||||
e.iceHostMux = iceMux
|
||||
|
||||
log.Infof("NetBird Engine started listening on WireGuard port %d", *port)
|
||||
|
||||
e.routeManager = routemanager.NewManager(e.ctx, e.config.WgPrivateKey.PublicKey().String(), e.wgInterface, e.statusRecorder)
|
||||
@ -739,7 +732,7 @@ func (e Engine) createPeerConn(pubKey string, allowedIPs string) (*peer.Conn, er
|
||||
StunTurn: stunTurn,
|
||||
InterfaceBlackList: e.config.IFaceBlackList,
|
||||
Timeout: timeout,
|
||||
UDPMux: e.iceHostMux,
|
||||
UDPMux: e.iceMux,
|
||||
UDPMuxSrflx: e.iceMux,
|
||||
ProxyConfig: proxyConfig,
|
||||
LocalWgPort: e.config.WgPort,
|
||||
|
Loading…
Reference in New Issue
Block a user