nixos-module/container/upstream: use internal core ipv4 address for port forwarding reflection
This commit is contained in:
parent
3fbf594f1a
commit
24e979d6bd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue