Force the nodes in the local sim to announce 127.0.0.1 in discovery

This commit is contained in:
Zahary Karadjov 2020-02-27 20:45:06 +02:00
parent 47df900958
commit 2623ac191f
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ cd "$GIT_ROOT"
DATA_DIR="${SIMULATION_DIR}/node-$NODE_ID" DATA_DIR="${SIMULATION_DIR}/node-$NODE_ID"
PORT=$(( BASE_P2P_PORT + NODE_ID )) PORT=$(( BASE_P2P_PORT + NODE_ID ))
NAT_FLAG="--nat:none" NAT_FLAG="--nat:extip:127.0.0.1"
if [ "${NAT:-}" == "1" ]; then if [ "${NAT:-}" == "1" ]; then
NAT_FLAG="--nat:any" NAT_FLAG="--nat:any"
fi fi

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 22bf279b0794f55e08344fe54beddf44d3ae9549 Subproject commit e89e59aa5952bf663b3b1fd705cdd6139f006672