mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
Refactor(socks): replace net.IP with netip.Addr (#397)
This commit is contained in:
+1
-1
@@ -186,5 +186,5 @@ func (pc *socksPacketConn) Close() error {
|
||||
}
|
||||
|
||||
func serializeSocksAddr(m *M.Metadata) socks5.Addr {
|
||||
return socks5.SerializeAddr("", m.DstIP.AsSlice(), m.DstPort)
|
||||
return socks5.SerializeAddr("", m.DstIP, m.DstPort)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user