1
0
Fork 0
mirror of https://github.com/SamTherapy/dnscrypt.git synced 2024-12-22 00:50:42 +00:00

udp: fix remote addr source (#12)

This commit is contained in:
Eugene 2021-07-27 18:06:28 +03:00 committed by GitHub
parent 3416ca53bc
commit 10ee7b1b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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