1
0
Fork 0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-05-28 01:26:09 +02:00

server: Populate Request.RemoteAddr field

This commit is contained in:
Adnan Maolood 2021-02-13 21:10:19 -05:00
parent d2c70a33d5
commit 595b0d0490

View File

@ -220,6 +220,9 @@ func (s *Server) respond(conn net.Conn) {
}
}
// Store remote address
req.RemoteAddr = conn.RemoteAddr()
resp := s.responder(req)
if resp == nil {
w.Status(StatusNotFound)