mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Add LocalAddr to complete net.PacketConn interface
This commit is contained in:
parent
f990a56046
commit
e4ce2c79a9
1 changed files with 4 additions and 0 deletions
|
@ -231,3 +231,7 @@ func (c *Core) WriteTo(p []byte, addr net.Addr) (n int, err error) {
|
|||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (c *Core) LocalAddr() net.Addr {
|
||||
return iwt.Addr(c.public)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue