Refactor(socks): replace net.IP with netip.Addr (#397)

This commit is contained in:
Jason Lyu
2024-09-01 04:04:01 +08:00
committed by GitHub
parent bd37a1a4c6
commit 978803cdf8
4 changed files with 118 additions and 30 deletions
+1 -1
View File
@@ -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)
}