5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-21 19:30:28 +00:00

Add LocalAddr to complete net.PacketConn interface

This commit is contained in:
Neil Alexander 2021-07-05 22:26:09 +01:00
parent f990a56046
commit e4ce2c79a9

View File

@ -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)
}