diff --git a/package/lean/luci-app-zerotier/luasrc/model/cbi/zerotier/settings.lua b/package/lean/luci-app-zerotier/luasrc/model/cbi/zerotier/settings.lua index 14f4bdce05..91ad4089df 100644 --- a/package/lean/luci-app-zerotier/luasrc/model/cbi/zerotier/settings.lua +++ b/package/lean/luci-app-zerotier/luasrc/model/cbi/zerotier/settings.lua @@ -23,4 +23,9 @@ e=t:option(DummyValue,"opennewwindow" , translate("")) e.description = translate("Create or manage your zerotier network, and auth clients who could access") +local apply = luci.http.formvalue("cbi.apply") +if apply then + io.popen("/etc/init.d/zerotier restart") +end + return a