From 2cc88d7612732d237251e06d76a719a80d46d2c5 Mon Sep 17 00:00:00 2001 From: egon0 Date: Sat, 26 Feb 2011 18:18:03 +0100 Subject: * fixed hardcoded ip in splash_sync script 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 -- cgit v0.10.1