From 76b5dddf81eaa6ca89d08d4786faea0afc977a77 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 18 Jun 2022 02:00:07 +0200 Subject: [PATCH] modules/port-magic: consider hostname in random port generation --- modules/port-magic/link.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/port-magic/link.nix b/modules/port-magic/link.nix index 43ca9bc..42a1a4c 100644 --- a/modules/port-magic/link.nix +++ b/modules/port-magic/link.nix @@ -68,7 +68,7 @@ in }; config = mkIf true { hostname = mkDefault cfg.ipv4; - port = mkDefault (portHash name); + port = mkDefault (portHash "${cfg.hostname}:${name}"); portStr = toString cfg.port; tuple = "${cfg.hostname}:${cfg.portStr}"; url = "${cfg.protocol}://${cfg.hostname}:${cfg.portStr}${if cfg.path == null then "" else cfg.path}";