Skip to content

Commit

Permalink
udpnat2: Set upstream to writer
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Nov 8, 2024
1 parent 6e1285b commit 8fe04d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/udpnat2/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,7 @@ func (c *Conn) SetReadDeadline(t time.Time) error {
func (c *Conn) SetWriteDeadline(t time.Time) error {
return os.ErrInvalid
}

func (c *Conn) Upstream() any {
return c.writer
}

0 comments on commit 8fe04d1

Please sign in to comment.