[package] relayd: map "ipaddr" option to local ip (-L)
[openwrt.git] / package / relayd / files / relay.sh
index 3e5e84c..390900b 100644 (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"
This page took 0.022224 seconds and 4 git commands to generate.