From de913f66f39d9084a3faf494643b9d981e31206a Mon Sep 17 00:00:00 2001 From: jow Date: Wed, 27 Apr 2011 19:17:13 +0000 Subject: [PATCH] [backfire] merge r26773 git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@26774 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/relayd/files/relay.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/relayd/files/relay.sh b/package/relayd/files/relay.sh index 3e5e84c87..390900ba3 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"