Skip to content

Commit 1320ab9

Browse files
committed
add listenaddress
1 parent b830429 commit 1320ab9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

shutter/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ COPY --from=assets ${ASSETS_DIR}/ ${ASSETS_DIR}/
5252

5353
# Placed here to rebuild less layers
5454
ENV CHAIN_PORT=${CHAIN_PORT} \
55-
SHUTTER_P2P_LISTENADDRESSES="/ip4/0.0.0.0/tcp/${KEYPER_PORT}" \
55+
SHUTTER_P2P_LISTENADDRESSES="/ip4/0.0.0.0/tcp/${KEYPER_PORT},/ip4/0.0.0.0/udp/${KEYPER_PORT}/quic-v1" \
5656
NETWORK=${NETWORK}
5757

5858
ENTRYPOINT ["supervisord", "-c", "/etc/supervisord.conf"]

shutter/scripts/configure_keyper.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ echo "[INFO | configure] Calculating keyper configuration values..."
1010

1111
SUPPORTED_NETWORKS="gnosis"
1212

13-
export SHUTTER_P2P_ADVERTISEADDRESSES="[\"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/tcp/${KEYPER_PORT}\"]"
13+
# Conditionally add square brackets to SHUTTER_P2P_LISTENADDRESSES
14+
if [[ ! "$SHUTTER_P2P_LISTENADDRESSES" =~ ^\[.*\]$ ]]; then
15+
export SHUTTER_P2P_LISTENADDRESSES="[$SHUTTER_P2P_LISTENADDRESSES]"
16+
fi
17+
18+
export SHUTTER_P2P_ADVERTISEADDRESSES="[\"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/tcp/${KEYPER_PORT}\", \"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/udp/${KEYPER_PORT}/quic-v1\"]"
1419
export SHUTTER_BEACONAPIURL=$(get_beacon_api_url_from_global_env "$NETWORK" "$SUPPORTED_NETWORKS")
1520
export SHUTTER_GNOSIS_NODE_CONTRACTSURL=http://execution.gnosis.dncore.dappnode:8545
1621
export SHUTTER_GNOSIS_NODE_ETHEREUMURL=$(get_execution_ws_url_from_global_env "$NETWORK" "$SUPPORTED_NETWORKS")

0 commit comments

Comments
 (0)