Skip to content

Commit

Permalink
introduce enviorment variable NET_DEV so net device does need to be eth0
Browse files Browse the repository at this point in the history
  • Loading branch information
hlyi committed Jan 18, 2023
1 parent 564c563 commit 0957dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,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 ${NET_DEV:-eth0} | awk '$1 == "inet" { print $2 }' | xargs | sed 's/ /:/g')${RELAY_NETWORKS}"
)

if [ "$DISABLE_IPV6" ]; then
Expand Down

0 comments on commit 0957dc1

Please sign in to comment.