diff --git a/entrypoint.sh b/entrypoint.sh index 423d9f9..b3cc25a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,7 +26,7 @@ fi opts=( dc_local_interfaces "[${BIND_IP:-0.0.0.0}]:${PORT:-25} ; [${BIND_IP6:-::0}]:${PORT:-25}" dc_other_hostnames "${OTHER_HOSTNAMES}" - dc_relay_nets "$(ip addr show dev eth0 | awk '$1 == "inet" { print $2 }' | xargs | sed 's/ /:/g')${RELAY_NETWORKS}" + dc_relay_nets "$(ip addr show dev eth0 scope global | awk '$1 == "inet" || $1 == "inet6" { print $2 }' | xargs | sed 's/:/::/g' | sed 's/ /:/g')${RELAY_NETWORKS}" ) if [ "$DISABLE_IPV6" ]; then