Updated vpn
This commit is contained in:
@@ -244,7 +244,10 @@ in with lib; {
|
||||
# Port mappings
|
||||
# TODO: openports if expose.vpn
|
||||
vpnnamespaces.wg = mkIf cfg.vpn.enable {
|
||||
portMappings = [{ from = defaultPort; to = defaultPort; }];
|
||||
portMappings = [{ From = defaultPort; To = defaultPort; }];
|
||||
openVPNPorts = optionalString cfg.expose.vpn.enable [
|
||||
{ port = cfg.expose.vpn.port; protocol = "tcp"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user