summaryrefslogtreecommitdiff
path: root/package/relayd/files/relay.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/relayd/files/relay.sh')
-rw-r--r--package/relayd/files/relay.sh4
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"