nixos-module/container/upstream: use internal core ipv4 address for port forwarding reflection

This commit is contained in:
Astro 2022-08-27 19:06:39 +02:00
parent 3fbf594f1a
commit 24e979d6bd
1 changed files with 1 additions and 5 deletions

View File

@ -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;