diff options
author | egon_ffj <egon@freifunk-jena.de> | 2011-02-26 17:18:03 (GMT) |
---|---|---|
committer | egon_ffj <egon@freifunk-jena.de> | 2011-02-26 17:18:03 (GMT) |
commit | f5f9f9f43b6ea3b5b9d63c5aaff1587c3f2f2cfb (patch) | |
tree | 3cd88726edda480eb4b8ddae8a50e041e992957c | |
parent | 3b699931487958334179f49c60fe0ec01e82c635 (diff) |
* fixed hardcoded ip in splash_sync script
-rwxr-xr-x | files/sbin/splash_sync | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/files/sbin/splash_sync b/files/sbin/splash_sync index 8299f97..a188426 100755 --- a/files/sbin/splash_sync +++ b/files/sbin/splash_sync @@ -3,6 +3,7 @@ x=0 config_load splash_users test=1 +myip=`uci get network.mesh.ipaddr` splash_check() { timeout=6000 current_time=`date +%s` @@ -35,7 +36,7 @@ iptables -t nat -N ffj_splash iptables -t nat -I zone_mesh_prerouting 1 -p tcp -j ffj_splash config_foreach splash_check user #iptables -t nat -D ffj_splash -p tcp -j DNAT --to 10.17.200.1:80 -iptables -t nat -A ffj_splash -p tcp -j DNAT --to 10.17.200.1:80 +iptables -t nat -A ffj_splash -p tcp -j DNAT --to $myip:80 #iptables -t nat -D ffj_splash -j DROP #iptables -t nat -A ffj_splash -j DROP |