4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-04 20:37:46 +00:00

Multicast interface detection and shutdown tweaks

May help with #1173.
This commit is contained in:
Neil Alexander
2024-09-29 20:58:10 +01:00
parent 43a1a3de64
commit c00779c7d3
2 changed files with 6 additions and 1 deletions

View File

@ -422,7 +422,10 @@ func (l *links) listen(u *url.URL, sintf string) (*Listener, error) {
li := &Listener{
listener: listener,
ctx: ctx,
Cancel: cancel,
Cancel: func() {
cancel()
_ = listener.Close()
},
}
var options linkOptions