Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Report correct local/remote addresses for intercepted UDP conns. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed May 8, 2023
1 parent 116fa37 commit 44a690e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tunnel/udp_vconn/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ func (conn *udpConn) Close() error {
}

func (conn *udpConn) LocalAddr() net.Addr {
return conn.srcAddr
return conn.writeConn.LocalAddr()
}

func (conn *udpConn) RemoteAddr() net.Addr {
return conn
return conn.srcAddr
}

func (conn *udpConn) SetDeadline(time.Time) error {
Expand Down

0 comments on commit 44a690e

Please sign in to comment.