mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
fix issue
This commit is contained in:
parent
4f71fbbcc1
commit
112b773ffb
7
utils.go
7
utils.go
@ -213,6 +213,13 @@ func CheckSettings(config *Settings) error {
|
||||
if config.LoginToken == "" {
|
||||
return errors.New("login token cannot be empty")
|
||||
}
|
||||
} else if config.Provider == GOOGLE {
|
||||
if config.Email == "" {
|
||||
return errors.New("email cannot be empty")
|
||||
}
|
||||
if config.Password == "" {
|
||||
return errors.New("password cannot be empty")
|
||||
}
|
||||
} else {
|
||||
return errors.New("please provide supported DNS provider: DNSPod/HE/AliDNS/Cloudflare/GoogleDomain/DuckDNS")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user