summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-04-27 19:16:35 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-04-27 19:16:35 +0000
commitcb0c1f9015bf6c935e1f4befc4d1fb35ea3cc9d9 (patch)
treea8b24e79d4d1920e51f506f76df0b43572b3875d /package
parent8b7a516fa800fe9881cebd9537c1a9de1512c064 (diff)
downloadmtk-20170518-cb0c1f9015bf6c935e1f4befc4d1fb35ea3cc9d9.zip
mtk-20170518-cb0c1f9015bf6c935e1f4befc4d1fb35ea3cc9d9.tar.gz
mtk-20170518-cb0c1f9015bf6c935e1f4befc4d1fb35ea3cc9d9.tar.bz2
relayd: map "ipaddr" option to local ip (-L)
SVN-Revision: 26773
Diffstat (limited to 'package')
-rw-r--r--package/relayd/files/relay.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/relayd/files/relay.sh b/package/relayd/files/relay.sh
index 3e5e84c..390900b 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"