Update iptables.sh

This commit is contained in:
MarkusMcNugen 2018-02-03 02:42:06 -05:00 committed by GitHub
parent 2816cf5ddd
commit ca7b0eba99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,7 @@
#!/bin/bash
# Kanged from binhex's OpenVPN dockers
# ip route
###
# Wait until tunnel is up
while : ; do
if [ -c /dev/net/tun ]; then
break
@ -12,6 +10,9 @@ while : ; do
fi
done
# ip route
###
# split comma seperated string into list from LAN_NETWORK env variable
IFS=',' read -ra lan_network_list <<< "${LAN_NETWORK}"