Fixed too long socket name

This commit is contained in:
BarsTiger
2023-07-27 13:06:00 +03:00
parent 80242a809e
commit f87b2b2177

View File

@@ -92,7 +92,8 @@ class Onion(object):
]
}
if platform.system() in ["Windows", "Darwin"]:
if platform.system() in ["Windows", "Darwin"] or \
len(tor_data_directory_name) > 90:
try:
self.tor_control_port = get_available_port(1000, 65535)
tor_config = tor_config | {"ControlPort": str(self.tor_control_port)}