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