fix(access): mistakes

This commit is contained in:
arcnmx 2024-04-15 12:01:22 -07:00
parent ed3fff4c4f
commit 62a01d2c03
2 changed files with 6 additions and 4 deletions

View file

@ -2,9 +2,11 @@
config,
meta,
lib,
gensokyo-zone,
...
}:
let
inherit (gensokyo-zone.lib) mkAddress6;
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.modules) mkIf mkMerge mkBefore mkDefault mkOptionDefault;
inherit (lib.strings) optionalString concatStringsSep;
@ -99,7 +101,7 @@ in {
type = str;
default = let
scheme = if access.port == 443 then "https" else "http";
in "${scheme}://${access.host}:${toString access.port}";
in "${scheme}://${mkAddress6 access.host}:${toString access.port}";
};
port = mkOption {
type = port;