Skip to content

Commit

Permalink
Use socket.gethostname for pyro host
Browse files Browse the repository at this point in the history
  • Loading branch information
koirikivi committed Apr 19, 2024
1 parent 61fd6ff commit 8ce1974
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bridge_node/bridge/common/p2p/network.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import socket
import logging
import threading
import dataclasses
Expand Down Expand Up @@ -340,9 +341,11 @@ def create_pyro_network(container: Container):
],
)

hostname = socket.gethostname()
network = PyroNetwork(
node_id=config.node_id,
host=config.hostname,
# host=config.hostname,
host=hostname,
port=config.port,
peers=config.peers,
context_cls=PyroSecureContext,
Expand Down

0 comments on commit 8ce1974

Please sign in to comment.