mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
update ddns on server update (#1050)
This commit is contained in:
@@ -65,7 +65,7 @@ func (c *DDNSClass) GetDDNSProvidersFromProfiles(profileId []uint64, ip *model.I
|
||||
profiles = append(profiles, profile)
|
||||
} else {
|
||||
c.listMu.RUnlock()
|
||||
return nil, fmt.Errorf("无法找到DDNS配置 ID %d", id)
|
||||
return nil, fmt.Errorf("cannot find DDNS profile %d", id)
|
||||
}
|
||||
}
|
||||
c.listMu.RUnlock()
|
||||
@@ -90,7 +90,7 @@ func (c *DDNSClass) GetDDNSProvidersFromProfiles(profileId []uint64, ip *model.I
|
||||
provider.Setter = &he.Provider{APIKey: profile.AccessSecret}
|
||||
providers = append(providers, provider)
|
||||
default:
|
||||
return nil, fmt.Errorf("无法找到配置的DDNS提供者 %s", profile.Provider)
|
||||
return nil, fmt.Errorf("cannot find DDNS provider %s", profile.Provider)
|
||||
}
|
||||
}
|
||||
return providers, nil
|
||||
|
||||
Reference in New Issue
Block a user