Skip to content

Commit

Permalink
Fix: socks5 inbound return remote udp addr for identity
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed Feb 20, 2020
1 parent 0f4cdbf commit d68339c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/socks/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (c *fakeConn) WriteBack(b []byte, addr net.Addr) (n int, err error) {

// LocalAddr returns the source IP/Port of UDP Packet
func (c *fakeConn) LocalAddr() net.Addr {
return c.PacketConn.LocalAddr()
return c.rAddr
}

func (c *fakeConn) Close() error {
Expand Down

0 comments on commit d68339c

Please sign in to comment.