Skip to content

Commit 10ee7b1

Browse files
authored
udp: fix remote addr source (#12)
1 parent 3416ca5 commit 10ee7b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server_udp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (w *UDPResponseWriter) LocalAddr() net.Addr {
3535

3636
// RemoteAddr is the client's address
3737
func (w *UDPResponseWriter) RemoteAddr() net.Addr {
38-
return w.udpConn.RemoteAddr()
38+
return w.sess.RemoteAddr()
3939
}
4040

4141
// WriteMsg writes DNS message to the client

0 commit comments

Comments
 (0)