mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
feat: instruction for adding passkey
This commit is contained in:
parent
aa30b0b4af
commit
018a3f15fd
28 changed files with 1851 additions and 763 deletions
|
@ -104,6 +104,11 @@ func Save() (err error) {
|
|||
reflectFrom(k, v)
|
||||
}
|
||||
|
||||
// fix unable to save empty slice
|
||||
if len(ServerSettings.RecursiveNameservers) == 0 {
|
||||
Conf.Section("server").Key("RecursiveNameservers").SetValue("")
|
||||
}
|
||||
|
||||
err = Conf.SaveTo(ConfPath)
|
||||
if err != nil {
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue