File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ while [ $currentAttempt -lt $totalAttempts ]; do
3636 for port in ${ports[$protocol]} ; do
3737 echo " setting $protocol port '$port ' for docker"
3838 iptables -t nat -A PREROUTING -p $protocol --dport $port -m addrtype --dst-type LOCAL -j DOCKER
39+ iptables -t nat -A OUTPUT -p $protocol --dport $port -m addrtype --dst-type LOCAL -j DOCKER
3940 done
4041 done
4142
Original file line number Diff line number Diff line change @@ -141,7 +141,9 @@ groupid=$(synogroup --get $groupnamedocker | awk -F "[][{}]" '/Group ID/ { print
141141videodrivergroupid=$( id -g videodriver)
142142
143143hostip=$( ip route get 1 | awk ' {print $NF;exit}' )
144- hostrange=$( ip -o -f inet addr show eth0 | awk ' {print $4}' | sed ' s/\.[0-9]\+\//.0\//' )
144+
145+ default_interface=$( ip route | awk ' /default/ {print $5}' | head -n1)
146+ hostrange=$( ip -o -f inet addr show " $default_interface " | awk ' {print $4}' | sed ' s/\.[0-9]\+\//.0\//' )
145147
146148timezone=$( readlink /etc/localtime | sed ' s|.*/zoneinfo/||' )
147149
You can’t perform that action at this time.
0 commit comments