mirror of
https://github.com/basicswap/basicswap.git
synced 2026-04-18 06:17:22 +02:00
Fix (host:port:ssl)
This commit is contained in:
@@ -447,7 +447,11 @@ def _parse_server_string(server_str):
|
||||
parts = server_str.strip().split(":")
|
||||
host = parts[0]
|
||||
port = int(parts[1]) if len(parts) > 1 else 50002
|
||||
use_ssl = port != 50001
|
||||
if len(parts) > 2:
|
||||
ssl_str = parts[2].lower()
|
||||
use_ssl = ssl_str in ("true", "1", "yes", "ssl")
|
||||
else:
|
||||
use_ssl = port != 50001
|
||||
return {"host": host, "port": port, "ssl": use_ssl}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user