mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-17 01:49:45 -07:00
Fix typo
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user