4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-06 09:54:06 +00:00

Refactor multicast so that it creates a new TCP listener for each interface with LL addresses (so that it will not break if Listen is not set with a wildcard address)

This commit is contained in:
Neil Alexander
2019-03-06 11:06:13 +00:00
parent 2419b61b2c
commit de2aff2758
3 changed files with 68 additions and 50 deletions

View File

@ -119,7 +119,8 @@ func (l *link) listen(uri string) error {
}
switch u.Scheme {
case "tcp":
return l.tcp.listen(u.Host)
_, err := l.tcp.listen(u.Host)
return err
default:
return errors.New("unknown listen scheme: " + u.Scheme)
}