commit a17ad76818bddb0ede4b3198e5b0559bcb20835e Author: David Fifield david@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()
tor-commits@lists.torproject.org