diff --git a/nix/nixos-module/container/upstream.nix b/nix/nixos-module/container/upstream.nix index 15dcebb..91b509f 100644 --- a/nix/nixos-module/container/upstream.nix +++ b/nix/nixos-module/container/upstream.nix @@ -108,11 +108,7 @@ in else "${destination}:${toString sourcePort}"; loopbackIPs = if reflect - then builtins.filter (ip: ip != null) ( - map (net: - upstreamInterfaces.${net}.upstream.staticIpv4Address - ) (builtins.attrNames upstreamInterfaces) - ) + then [ config.site.net.core.hosts4.${hostName} ] else []; } ) hostConf.forwardPorts;