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
@@ -30,7 +30,7 @@ func pickConnection(connections []models.Connection,
switch selection.VPN {
case vpn.OpenVPN:
targetIP = selection.OpenVPN.EndpointIP
case vpn.Wireguard:
case vpn.Wireguard, vpn.AmneziaWg:
targetIP = selection.Wireguard.EndpointIP
default:
panic("unknown VPN type: " + selection.VPN)