fix(custom): do not set server name if it does not exist
This commit is contained in:
@@ -57,7 +57,6 @@ func getWireguardConnection(selection settings.ServerSelection) (
|
|||||||
Port: *selection.Wireguard.EndpointPort,
|
Port: *selection.Wireguard.EndpointPort,
|
||||||
Protocol: constants.UDP,
|
Protocol: constants.UDP,
|
||||||
PubKey: selection.Wireguard.PublicKey,
|
PubKey: selection.Wireguard.PublicKey,
|
||||||
ServerName: selection.Names[0],
|
|
||||||
}
|
}
|
||||||
if len(selection.Names) > 0 {
|
if len(selection.Names) > 0 {
|
||||||
// Set the server name for PIA port forwarding code used
|
// Set the server name for PIA port forwarding code used
|
||||||
|
|||||||
Reference in New Issue
Block a user