chore(vpn): add check for empty public key for Wireguard
This commit is contained in:
@@ -72,7 +72,7 @@ func Test_Provider_GetConnection(t *testing.T) {
|
||||
},
|
||||
"default Wireguard port": {
|
||||
filteredServers: []models.Server{
|
||||
{IPs: []net.IP{net.IPv4(1, 1, 1, 1)}},
|
||||
{IPs: []net.IP{net.IPv4(1, 1, 1, 1)}, WgPubKey: "x"},
|
||||
},
|
||||
selection: settings.ServerSelection{
|
||||
VPN: vpn.Wireguard,
|
||||
@@ -82,6 +82,7 @@ func Test_Provider_GetConnection(t *testing.T) {
|
||||
IP: net.IPv4(1, 1, 1, 1),
|
||||
Port: 51820,
|
||||
Protocol: constants.UDP,
|
||||
PubKey: "x",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user