diff --git a/request.go b/request.go index eaee287..db3c88a 100644 --- a/request.go +++ b/request.go @@ -119,3 +119,11 @@ func (r *Request) ServerName() string { } 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 +}