diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-04-27 19:16:35 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-04-27 19:16:35 +0000 |
commit | 2b8e247971328b3b088b3d51180d26f237205b70 (patch) | |
tree | 7e2520f7e22c75982b2015e8c9630dc23c0e3d20 /package/relayd | |
parent | 2b26ad5fa34cb58b9887ee2d37953bcfbc079f62 (diff) | |
download | upstream-2b8e247971328b3b088b3d51180d26f237205b70.tar.gz upstream-2b8e247971328b3b088b3d51180d26f237205b70.tar.bz2 upstream-2b8e247971328b3b088b3d51180d26f237205b70.zip |
[package] relayd: map "ipaddr" option to local ip (-L)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26773 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/relayd')
-rw-r--r-- | package/relayd/files/relay.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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" |