Skip to content

Commit 6a6b36a

Browse files
committed
Assign addresses on proxy nets before finding one
1 parent 78beb02 commit 6a6b36a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

carthage_base/proxy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,8 @@ async def proxy_address(self, server:ProxyProtocol):
573573
'''
574574
Returns the address at which the proxy should contact this proxy service.
575575
'''
576+
for net in set(l.net for l in self.network_links.values()):
577+
net.assign_addresses()
576578
for links in shared_network_links(self.network_links, server.network_links):
577579
if address := links[0].merged_v4_config.address:
578580
return address

0 commit comments

Comments
 (0)