[tor-commits] [flashproxy/master] Descope a variable.
dcf at torproject.org
dcf at torproject.org
Wed Jan 30 05:11:38 UTC 2013
commit 799c50e4949c0af2f769f25526869a545c985a15
Author: David Fifield <david at bamsoftware.com>
Date: Mon Nov 26 23:09:38 2012 -0800
Descope a variable.
---
websocket-transport/websocket-server.go | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/websocket-transport/websocket-server.go b/websocket-transport/websocket-server.go
index fa07fe7..0703f91 100644
--- a/websocket-transport/websocket-server.go
+++ b/websocket-transport/websocket-server.go
@@ -14,8 +14,6 @@ import (
"time"
)
-var defaultPort int
-
var ptInfo PtServerInfo
// When a connection handler starts, +1 is written to this channel; when it
@@ -188,6 +186,7 @@ func startListener(addr *net.TCPAddr) (*net.TCPListener, error) {
func main() {
const ptMethodName = "websocket"
+ var defaultPort int
flag.IntVar(&defaultPort, "port", 0, "port to listen on if unspecified by Tor")
flag.Parse()
More information about the tor-commits
mailing list