Unwrap 4in6 address received by client packet conn

This commit is contained in:
世界
2023-06-19 13:29:41 +08:00
parent 05331b2409
commit 82d5b9e36d
3 changed files with 13 additions and 13 deletions

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 {