mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-20 02:44:44 +02:00
[package] relayd: map "ipaddr" option to local ip (-L)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26773 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
98a395304f
commit
caf4c049bf
@ -48,6 +48,10 @@ setup_interface_relay() {
|
|||||||
resolve_ifname "$ifn"
|
resolve_ifname "$ifn"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
local ipaddr
|
||||||
|
config_get ipaddr "$cfg" ipaddr
|
||||||
|
[ -n "$ipaddr" ] && append args "-L $ipaddr"
|
||||||
|
|
||||||
local gateway
|
local gateway
|
||||||
config_get gateway "$cfg" gateway
|
config_get gateway "$cfg" gateway
|
||||||
[ -n "$gateway" ] && append args "-G $gateway"
|
[ -n "$gateway" ] && append args "-G $gateway"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user