hotfix(amneziawg): fix errors (#3240)

This commit is contained in:
Zhurik
2026-03-22 01:24:03 +03:00
committed by GitHub
parent 5e6c11b045
commit 8a2e8bda0f
5 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func MaxTheoreticalVPNMTU(vpnType, network string, vpnGateway netip.Addr) uint32
panic("unknown network protocol: " + network)
}
switch vpnType {
case vpn.Wireguard:
case vpn.Wireguard, vpn.AmneziaWg:
vpnLinkMTU -= pconstants.WireguardHeaderLength
case vpn.OpenVPN:
vpnLinkMTU -= pconstants.OpenVPNHeaderMaxLength