server: Make Request.RemoteAddr a net.Addr

A concrete type is better.
This commit is contained in:
Adnan Maolood
2021-02-20 16:27:33 -05:00
parent 8938038797
commit 2308c6407f
2 changed files with 4 additions and 6 deletions

View File

@@ -294,7 +294,7 @@ func (srv *Server) respond(conn net.Conn) {
}
// Store remote address
req.RemoteAddr = conn.RemoteAddr().String()
req.RemoteAddr = conn.RemoteAddr()
h := srv.Handler
if h == nil {