remove wireguard second port thing

This commit is contained in:
xunuwu 2025-10-08 18:58:39 +02:00
parent e79fcc1c91
commit b4be3fef4e
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI

View file

@ -31,7 +31,7 @@ in {
peers;
in {
allowedTCPPorts = getPortsWithProtocol "tcp";
allowedUDPPorts = [51820 1234] ++ getPortsWithProtocol "udp";
allowedUDPPorts = [51820] ++ getPortsWithProtocol "udp";
extraCommands = forPortIps ({
IP,
port,
@ -72,7 +72,6 @@ in {
})
peers;
};
"50-wg1" = lib.recursiveUpdate config.systemd.network.netdevs."50-wg0" {wireguardConig.ListenPort = 1234;};
};
systemd.network.networks.wg0 = {