summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-04-23 16:12:54 (GMT)
committerJan Huwald <jh@sotun.de>2012-04-23 16:12:54 (GMT)
commitb0b97dc9cd2b210321eca295cc06c496776f6d58 (patch)
tree03bafee9c884a2aa63d2987da240c3511b49366b
parent1409d7a3b471d6066af3277c0cbbd32d98862220 (diff)
service httpd: listen on br-lan IPv4 address
-rw-r--r--files/common/etc/fsm/inetable/common.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/files/common/etc/fsm/inetable/common.sh b/files/common/etc/fsm/inetable/common.sh
index 3625caa..0584f94 100644
--- a/files/common/etc/fsm/inetable/common.sh
+++ b/files/common/etc/fsm/inetable/common.sh
@@ -40,12 +40,13 @@ disable_httpd () {
}
# change the interfaces the service httpd is listening on;
-# automatically adds linklocal IPv6 addresses of br-mesh and br-lan
+# automatically adds link-local IPv6 addresses of br-mesh and br-lan and the lan-ip
change_service_httpd_listen () {
uci delete uhttp.service.listen_http &>/dev/null || true
for i in $1 \
[$(ifconfig br-mesh | egrep -o 'fe80[:0-9a-f]*')%br-mesh]:80 \
- [$(ifconfig br-lan | egrep -o 'fe80[:0-9a-f]*')%br-lan]:80; do
+ [$(ifconfig br-lan | egrep -o 'fe80[:0-9a-f]*')%br-lan]:80 \
+ $(uci get network.lan.ipaddr); do
uci add_list uhttpd.service.listen_http=$i
done
}
contact: Jan Huwald // Impressum