Skip to content

Commit

Permalink
更新ACL权限,支持最新master分支
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Apr 30, 2020
1 parent df1a79b commit 39f6d8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions htdocs/luci-static/resources/view/smartdns/smartdns.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,15 @@ return L.view.extend({
o.depends("type", "tls")
o.depends("type", "https")

// certificate verify
o = s.taboption("advanced", form.Flag, "no_check_certificate", _("No check certificate"),
_("Do not check certificate."))
o.rmempty = false
o.default = o.disabled
o.modalonly = true;
o.depends("type", "tls")
o.depends("type", "https")

// SNI host name
o = s.taboption("advanced", form.Value, "host_name", _("TLS SNI name"),
_("Sets the server name indication for query."))
Expand Down
6 changes: 4 additions & 2 deletions root/usr/share/rpcd/acl.d/luci-app-smartdns.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
},
"ubus": {
"service": [ "list" ]
}
},
"uci": [ "smartdns" ]
},
"write": {
"file": {
"/etc/smartdns/*": [ "write" ]
}
},
"uci": [ "smartdns" ]
}
}
}

0 comments on commit 39f6d8c

Please sign in to comment.