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:
parent
3416ca53bc
commit
10ee7b1b81
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue