Use multicast on network/control channels

This commit is contained in:
Asim Aslam 2019-10-15 15:57:13 +01:00
parent ca18089382
commit ca934951ad

View File

@ -831,7 +831,7 @@ func (n *network) Connect() error {
n.tunClient[ControlChannel] = ctrlClient
// listen on ControlChannel
ctrlListener, err := n.tunnel.Listen(ControlChannel)
ctrlListener, err := n.tunnel.Listen(ControlChannel, tunnel.ListenMulticast())
if err != nil {
n.Unlock()
return err
@ -847,7 +847,7 @@ func (n *network) Connect() error {
n.tunClient[NetworkChannel] = netClient
// listen on NetworkChannel
netListener, err := n.tunnel.Listen(NetworkChannel)
netListener, err := n.tunnel.Listen(NetworkChannel, tunnel.ListenMulticast())
if err != nil {
n.Unlock()
return err