diff --git a/tor/torProvider.go b/tor/torProvider.go index 35be9a6..fbe5e3e 100644 --- a/tor/torProvider.go +++ b/tor/torProvider.go @@ -273,10 +273,10 @@ func (tp *torProvider) Listen(identity connectivity.PrivateKey, port int) (conne if cwtchRestrictPorts := os.Getenv("CWTCH_RESTRICT_PORTS"); strings.ToLower(cwtchRestrictPorts) == "true" { // for whonix like systems we tightly restrict possible listen... - // pick a random port between 15300 and 15378 + // pick a random port between 15000 and 15378 // cwtch = 63 *77 *74* 63* 68 = 1537844616 log.Infof("using restricted ports, CWTCH_RESTRICT_PORTS=true"); - localport = 15300 + (localport % 78) + localport = 15000 + (localport % 378) } if bindExternal := os.Getenv("CWTCH_BIND_EXTERNAL_WHONIX"); strings.ToLower(bindExternal) == "true" {