[tor-commits] [meek/master] Fix format string in error message.
dcf at torproject.org
dcf at torproject.org
Mon Jan 11 20:50:56 UTC 2016
commit 91c31227cd18d5fca580fc4cb3cae08fe46ecf9e
Author: David Fifield <david at bamsoftware.com>
Date: Mon Jan 11 12:46:59 2016 -0800
Fix format string in error message.
---
meek-server/useraddr.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meek-server/useraddr.go b/meek-server/useraddr.go
index a01944b..7173f4c 100644
--- a/meek-server/useraddr.go
+++ b/meek-server/useraddr.go
@@ -44,7 +44,7 @@ func originalClientIP(req *http.Request) (net.IP, error) {
ip := net.ParseIP(host)
if ip == nil {
- return nil, fmt.Errorf("cannot parse %q as IP address")
+ return nil, fmt.Errorf("cannot parse %q as IP address", host)
}
return ip, nil
}
More information about the tor-commits
mailing list