mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
parent
43a1a3de64
commit
c00779c7d3
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue