Remove Request.RemoteAddr helper method
This commit is contained in:
parent
19f1d6693e
commit
4b92c71839
@ -119,11 +119,3 @@ func (r *Request) ServerName() string {
|
|||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// RemoteAddr returns the remote network address of the client.
|
|
||||||
func (r *Request) RemoteAddr() net.Addr {
|
|
||||||
if r.conn != nil {
|
|
||||||
return r.conn.RemoteAddr()
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user