[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [meek/master] Fix format string in error message.



commit 91c31227cd18d5fca580fc4cb3cae08fe46ecf9e
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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
 }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits