Skip to content

Commit

Permalink
udp: fix remote addr source (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 authored Jul 27, 2021
1 parent 3416ca5 commit 10ee7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (w *UDPResponseWriter) LocalAddr() net.Addr {

// RemoteAddr is the client's address
func (w *UDPResponseWriter) RemoteAddr() net.Addr {
return w.udpConn.RemoteAddr()
return w.sess.RemoteAddr()
}

// WriteMsg writes DNS message to the client
Expand Down

0 comments on commit 10ee7b1

Please sign in to comment.