diff options
author | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-10-21 17:32:39 -0500 |
---|---|---|
committer | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-10-21 17:32:39 -0500 |
commit | 4a56b1440c2bc315adda61b542793b7780cb8730 (patch) | |
tree | 819118b10e18373d6ddca31665ba3b7970849652 /common/pt_extras/pt_extras.go | |
parent | 770bc14548a6a48ccbc8be0f0583122cf1dc6f6e (diff) |
Removed termmon and fixed compiler warnings
Diffstat (limited to 'common/pt_extras/pt_extras.go')
-rw-r--r-- | common/pt_extras/pt_extras.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/common/pt_extras/pt_extras.go b/common/pt_extras/pt_extras.go index a04859e..b04426f 100644 --- a/common/pt_extras/pt_extras.go +++ b/common/pt_extras/pt_extras.go @@ -169,12 +169,6 @@ func resolveAddrStr(addrStr string) (*net.TCPAddr, error) { return &net.TCPAddr{IP: ip, Port: int(port), Zone: ""}, nil } -// Feature #15435 adds a new env var for determining if Tor keeps stdin -// open for use in termination detection. -func PtShouldExitOnStdinClose() bool { - return os.Getenv("TOR_PT_EXIT_ON_STDIN_CLOSE") == "1" -} - func ArgsToDialer(target string, name string, args map[string]interface{}, dialer proxy.Dialer) (Optimizer.Transport, error) { switch name { //case "obfs2": |