luci-app-zerotier: fix running

This commit is contained in:
CN_SZTL 2019-11-26 12:53:35 +08:00
parent 5299952387
commit a193a756fa
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -23,4 +23,9 @@ e=t:option(DummyValue,"opennewwindow" ,
translate("<input type=\"button\" class=\"cbi-button cbi-button-apply\" value=\"Zerotier.com\" onclick=\"window.open('https://my.zerotier.com/network')\" />"))
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