mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-09 20:26:15 -08:00
zone: add id to display
This commit is contained in:
1 parent
a9dc19ce76
commit
de84adb3a6
1 file changed
+3
-2
@@ -2,10 +2,11 @@ use std::fmt::Display;
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/dns.rs"));
|
||||
|
||||
impl Display for ZoneConfigPb {
|
||||
impl Display for ZoneData {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
writeln!(f, "; EasyTier Magic DNS zone file")?;
|
||||
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:")?;
|
||||
|
||||
Reference in new issue
Block a user