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}";