namesurfer: fix updateDNSHost (#2854)

This commit is contained in:
Ludovic Fernandez 2026-02-15 10:42:48 +01:00 committed by GitHub
commit c06f378f0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 5 deletions

View file

@ -12,6 +12,11 @@
"data": "ADw2sEd82DUgXcQ9hNBZThJs7zVJkR5v9JeSbAb9mZY",
"ttl": 300
},
{}
{
"name": "",
"type": "",
"data": "",
"ttl": 0
}
]
}

View file

@ -9,10 +9,10 @@ import (
// DNSNode represents a DNS record.
// http://95.128.3.201:8053/API/NSService_10#DNSNode
type DNSNode struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Data string `json:"data,omitempty"`
TTL int `json:"ttl,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
Data string `json:"data"`
TTL int `json:"ttl"`
}
// DNSZone represents a DNS zone.