feat: instruction for adding passkey

This commit is contained in:
Jacky 2024-09-16 23:27:17 +08:00
parent aa30b0b4af
commit 018a3f15fd
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
28 changed files with 1851 additions and 763 deletions

View file

@ -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