From d9d5652d6d1fd8dfedcf43797245c654906e3a3c Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 7 Oct 2023 21:43:21 -0700 Subject: [PATCH] Wat --- zone-to-zonefile.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index 39c5341..03f6a7d 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -68,8 +68,8 @@ let else abort "unrecognized hostname: ${host}"; - makeSrvRecords = protocol: service: - "records:joinLines" (map (record: + makeSrvRecords = protocol: service: records: + joinLines (map (record: let fqdn = hostToFqdn record.host; in "_${service}._${protocol} IN SRV ${toString record.priority} ${ toString record.weight