Use multicast on network/control channels
This commit is contained in:
parent
ca18089382
commit
ca934951ad
@ -831,7 +831,7 @@ func (n *network) Connect() error {
|
|||||||
n.tunClient[ControlChannel] = ctrlClient
|
n.tunClient[ControlChannel] = ctrlClient
|
||||||
|
|
||||||
// listen on ControlChannel
|
// listen on ControlChannel
|
||||||
ctrlListener, err := n.tunnel.Listen(ControlChannel)
|
ctrlListener, err := n.tunnel.Listen(ControlChannel, tunnel.ListenMulticast())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
n.Unlock()
|
n.Unlock()
|
||||||
return err
|
return err
|
||||||
@ -847,7 +847,7 @@ func (n *network) Connect() error {
|
|||||||
n.tunClient[NetworkChannel] = netClient
|
n.tunClient[NetworkChannel] = netClient
|
||||||
|
|
||||||
// listen on NetworkChannel
|
// listen on NetworkChannel
|
||||||
netListener, err := n.tunnel.Listen(NetworkChannel)
|
netListener, err := n.tunnel.Listen(NetworkChannel, tunnel.ListenMulticast())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
n.Unlock()
|
n.Unlock()
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user