fix wireguard port

This commit is contained in:
陈浩南 2023-12-15 12:40:28 +08:00
parent 9ec9597421
commit 2d8c36d108

View File

@ -49,7 +49,7 @@ inputs:
port = 51820 + (if inputs.config.nixos.services.xrayClient.enable then 1 else 0);
in
{
firewall = { allowedUDPPorts = [ (toString port) ]; trustedInterfaces = [ "wireguard" ]; };
firewall = { allowedUDPPorts = [ port ]; trustedInterfaces = [ "wireguard" ]; };
wireguard.interfaces.wireguard =
{
ips = [ "${self.wireguardIp}/24" ];