Fix typo
This commit is contained in:
parent
c1c9ee07a9
commit
2779560934
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ func requestedIP(q *query.Query, r *http.Request, cfg *config.NetConfig) (v4, v6
|
|||
var host string
|
||||
host, _, err = net.SplitHostPort(r.RemoteAddr)
|
||||
|
||||
if err != nil && host != "" {
|
||||
if err == nil && host != "" {
|
||||
if v4, v6, done = getIPs(host, v4, v6, cfg); done {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue