Unwrap 4in6 address received by client packet conn

This commit is contained in:
世界
2023-06-19 13:29:41 +08:00
parent 702d96a738
commit cc7b5d8280
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 {