From: Jo-Philipp Wich Date: Wed, 27 Apr 2011 19:16:35 +0000 (+0000) Subject: relayd: map "ipaddr" option to local ip (-L) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cb0c1f9015bf6c935e1f4befc4d1fb35ea3cc9d9;p=openwrt%2Fstaging%2Frobimarko.git relayd: map "ipaddr" option to local ip (-L) SVN-Revision: 26773 --- diff --git a/package/relayd/files/relay.sh b/package/relayd/files/relay.sh index 3e5e84c870..390900ba3b 100644 --- a/package/relayd/files/relay.sh +++ b/package/relayd/files/relay.sh @@ -48,6 +48,10 @@ setup_interface_relay() { resolve_ifname "$ifn" done + local ipaddr + config_get ipaddr "$cfg" ipaddr + [ -n "$ipaddr" ] && append args "-L $ipaddr" + local gateway config_get gateway "$cfg" gateway [ -n "$gateway" ] && append args "-G $gateway"