1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

fix issue

This commit is contained in:
Timothy 2019-08-30 11:56:56 +08:00
parent 4f71fbbcc1
commit 112b773ffb

View File

@ -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")
}