remove id from zone

This commit is contained in:
Luna Yao
2026-04-19 02:17:50 +02:00
parent 362547eaab
commit 11626d8082
7 changed files with 8 additions and 50 deletions
+5 -6
View File
@@ -5,12 +5,11 @@ import "common.proto";
package dns;
message ZoneData {
common.UUID id = 1;
string origin = 2;
uint32 ttl = 3;
repeated string records = 4;
repeated common.Url forwarders = 5;
bool fallthrough = 6;
string origin = 1;
uint32 ttl = 2;
repeated string records = 3;
repeated common.Url forwarders = 4;
bool fallthrough = 5;
}
message GetExportConfigRequest {}
-1
View File
@@ -14,7 +14,6 @@ impl Display for ZoneData {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
writeln!(f, "; EasyTier Magic DNS zone data")?;
writeln!(f, "; https://github.com/easytier/easytier")?;
writeln!(f, "; {}", self.id.unwrap_or_default())?;
if !self.forwarders.is_empty() {
writeln!(f, "; Forwarders:")?;