mirror of https://git.openwrt.org/project/luci.git
* Minor bugfixes
This commit is contained in:
parent
f801df7d4d
commit
f917c0bb64
|
@ -61,7 +61,7 @@ start() {
|
||||||
iptables -t nat -A luci_splash_leases -j DROP
|
iptables -t nat -A luci_splash_leases -j DROP
|
||||||
|
|
||||||
### Start the splash httpd
|
### Start the splash httpd
|
||||||
httpd -c /etc/luci_splash_httpd.conf -p 8082 -h /usr/lib/luci_splash/htdocs
|
httpd -c /etc/luci_splash_httpd.conf -p 8082 -h /usr/lib/luci-splash/htdocs
|
||||||
|
|
||||||
### Sync leases
|
### Sync leases
|
||||||
/usr/lib/luci-splash/sync.lua
|
/usr/lib/luci-splash/sync.lua
|
||||||
|
|
|
@ -121,8 +121,8 @@ function net.arptable()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Returns whether an IP-Adress belongs to a certain net
|
-- Returns whether an IP-Adress belongs to a certain net
|
||||||
function net.belongs(ip, net, prefix)
|
function net.belongs(ip, ipnet, prefix)
|
||||||
return (net.ip4bin(ip):sub(1, prefix) == net.ip4bin(net):sub(1, prefix))
|
return (net.ip4bin(ip):sub(1, prefix) == net.ip4bin(ipnet):sub(1, prefix))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Returns all available network interfaces
|
-- Returns all available network interfaces
|
||||||
|
|
Loading…
Reference in New Issue