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}";
|
else "${destination}:${toString sourcePort}";
|
||||||
loopbackIPs =
|
loopbackIPs =
|
||||||
if reflect
|
if reflect
|
||||||
then builtins.filter (ip: ip != null) (
|
then [ config.site.net.core.hosts4.${hostName} ]
|
||||||
map (net:
|
|
||||||
upstreamInterfaces.${net}.upstream.staticIpv4Address
|
|
||||||
) (builtins.attrNames upstreamInterfaces)
|
|
||||||
)
|
|
||||||
else [];
|
else [];
|
||||||
}
|
}
|
||||||
) hostConf.forwardPorts;
|
) hostConf.forwardPorts;
|
||||||
|
|
Loading…
Reference in New Issue