mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-13 03:12:24 +03:00
Code readability
This commit is contained in:
parent
f14e743cfc
commit
463e303c91
@ -92,8 +92,7 @@ def select_port(root_path: Path, addresses: List[Any]) -> uint16:
|
||||
global_config = load_config(root_path, "config.yaml")
|
||||
prefer_ipv6 = global_config.get("prefer_ipv6", False)
|
||||
selected_port: uint16
|
||||
for x in addresses:
|
||||
address_string, port = x[0], x[1]
|
||||
for address_string, port, *_ in addresses:
|
||||
address = ip_address(address_string)
|
||||
if address.version == 6 and prefer_ipv6:
|
||||
selected_port = port
|
||||
|
Loading…
Reference in New Issue
Block a user