Browse Source

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

SVN-Revision: 26773
Jo-Philipp Wich 15 years ago
parent
commit
cb0c1f9015
1 changed files with 4 additions and 0 deletions
  1. 4 0
      package/relayd/files/relay.sh

+ 4 - 0
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"