From 80c66485d2987a10bfb592ee92257c743daf8847 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Fri, 2 Aug 2019 22:38:18 +0200 Subject: [PATCH] Only set IP of glorytun if it is enabled --- luci-app-glorytun/root/etc/hotplug.d/iface/30-glorytun | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luci-app-glorytun/root/etc/hotplug.d/iface/30-glorytun b/luci-app-glorytun/root/etc/hotplug.d/iface/30-glorytun index bdeb3d22b..714c17a66 100644 --- a/luci-app-glorytun/root/etc/hotplug.d/iface/30-glorytun +++ b/luci-app-glorytun/root/etc/hotplug.d/iface/30-glorytun @@ -15,8 +15,9 @@ set_default() { local remoteip local config="$1" local iface + config_get enable "$config" enable config_get iface "$config" dev - [ "$iface" = "$DEVICE" ] && { + [ "$iface" = "$DEVICE" ] && [ "$enable" = "1" ] && { config_get localip "$config" localip config_get remoteip "$config" remoteip [ "$remoteip" != "" ] && [ "$localip" != "" ] && ifconfig $DEVICE $localip pointopoint $remoteip up