relayd: map "ipaddr" option to local ip (-L)

SVN-Revision: 26773
This commit is contained in:
Jo-Philipp Wich 2011-04-27 19:16:35 +00:00
parent 8b7a516fa8
commit cb0c1f9015

View file

@ -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"