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
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
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)
}