summaryrefslogtreecommitdiff
path: root/files/sbin/splash_sync
diff options
context:
space:
mode:
authoregon0 <ms@resonar.de>2011-02-26 17:18:03 (GMT)
committeregon0 <ms@resonar.de>2011-02-26 17:18:03 (GMT)
commit2cc88d7612732d237251e06d76a719a80d46d2c5 (patch)
tree3cd88726edda480eb4b8ddae8a50e041e992957c /files/sbin/splash_sync
parentbb1abac741deaed35d414a1a2487a222be54db2b (diff)
* fixed hardcoded ip in splash_sync script
Diffstat (limited to 'files/sbin/splash_sync')
-rwxr-xr-xfiles/sbin/splash_sync3
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
contact: Jan Huwald // Impressum