[tor-commits] [flashproxy/master] Strip output of get_external_ip.
dcf at torproject.org
dcf at torproject.org
Sun May 19 16:11:39 UTC 2013
commit a17ad76818bddb0ede4b3198e5b0559bcb20835e
Author: David Fifield <david at bamsoftware.com>
Date: Sun May 19 00:39:53 2013 -0700
Strip output of get_external_ip.
---
flashproxy-reg-appspot | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flashproxy-reg-appspot b/flashproxy-reg-appspot
index fa5378e..8975fc7 100755
--- a/flashproxy-reg-appspot
+++ b/flashproxy-reg-appspot
@@ -206,7 +206,7 @@ def urlopen(url):
def get_external_ip():
f = urlopen(urlparse.urlunparse(("https", FRONT_DOMAIN, "/ip", "", "", "")))
try:
- return f.read()
+ return f.read().strip()
finally:
f.close()
More information about the tor-commits
mailing list