mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 18:48:49 -04:00
fix(namecom): detect existing root host domains
This commit is contained in:
@@ -54,6 +54,9 @@ func (p *Provider) getRecordID(ctx context.Context, client *http.Client,
|
||||
}
|
||||
|
||||
for _, record := range data.Records {
|
||||
if record.Host == "" {
|
||||
record.Host = "@"
|
||||
}
|
||||
if record.Host == p.host && record.Type == recordType {
|
||||
return record.RecordID, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user