Merge pull request #12 from zhuobixin/master

LocalAddr() should return local address
pull/2561/head
Xiaokang Wang 2020-06-10 17:45:08 +08:00 committed by GitHub
commit e4ec9807a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ func (c *udpConn) RemoteAddr() net.Addr {
}
func (c *udpConn) LocalAddr() net.Addr {
return c.remote
return c.local
}
func (*udpConn) SetDeadline(time.Time) error {