Unwrap 4in6 address received by client packet conn

This commit is contained in:
世界 committed 2023-06-19 13:29:41 +08:00
1 parent 702d96a738
commit cc7b5d8280
3 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -309,7 +309,7 @@ func ReadPacket(conn net.Conn, buffer *buf.Buffer) (M.Socksaddr, error) {
}
_, err = buffer.ReadFullFrom(conn, int(length))
return destination, err
return destination.Unwrap(), err
}
func WritePacket(conn net.Conn, buffer *buf.Buffer, destination M.Socksaddr) error {