mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03: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:
parent
2419b61b2c
commit
de2aff2758
3 changed files with 68 additions and 50 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue