modules/port-magic: consider hostname in random port generation
This commit is contained in:
parent
911f7269ac
commit
76b5dddf81
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ in
|
||||||
};
|
};
|
||||||
config = mkIf true {
|
config = mkIf true {
|
||||||
hostname = mkDefault cfg.ipv4;
|
hostname = mkDefault cfg.ipv4;
|
||||||
port = mkDefault (portHash name);
|
port = mkDefault (portHash "${cfg.hostname}:${name}");
|
||||||
portStr = toString cfg.port;
|
portStr = toString cfg.port;
|
||||||
tuple = "${cfg.hostname}:${cfg.portStr}";
|
tuple = "${cfg.hostname}:${cfg.portStr}";
|
||||||
url = "${cfg.protocol}://${cfg.hostname}:${cfg.portStr}${if cfg.path == null then "" else cfg.path}";
|
url = "${cfg.protocol}://${cfg.hostname}:${cfg.portStr}${if cfg.path == null then "" else cfg.path}";
|
||||||
|
|
Loading…
Reference in a new issue