[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Descope a variable.
commit 799c50e4949c0af2f769f25526869a545c985a15
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits