[tor-commits] [stem/master] 65536 isn't a valid port

atagar at torproject.org atagar at torproject.org
Sat Jun 17 19:23:01 UTC 2017


commit 96f1e0f1867199347e3ee3ab8713ab9d6b91b767
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Jun 17 12:25:24 2017 -0700

    65536 isn't a valid port
    
    Oops, off-by-one error. Caught thanks to Roger.
---
 test/integ/process.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/integ/process.py b/test/integ/process.py
index 6fb101c..10f74a1 100644
--- a/test/integ/process.py
+++ b/test/integ/process.py
@@ -45,7 +45,7 @@ DataDirectory %s
 
 
 def random_port():
-  return str(random.randint(1024, 65536))
+  return str(random.randint(1024, 65535))
 
 
 @contextmanager



More information about the tor-commits mailing list