hotfix(pia): port forwarding to use server name

This commit is contained in:
Quentin McGaw
2022-06-06 18:09:21 +00:00
parent 5e659dc5b3
commit 5359257c65
4 changed files with 12 additions and 9 deletions

View File

@@ -60,12 +60,13 @@ func GetConnection(provider string,
}
connection := models.Connection{
Type: selection.VPN,
IP: ip,
Port: port,
Protocol: protocol,
Hostname: hostname,
PubKey: server.WgPubKey, // Wireguard
Type: selection.VPN,
IP: ip,
Port: port,
Protocol: protocol,
Hostname: hostname,
ServerName: server.ServerName,
PubKey: server.WgPubKey, // Wireguard
}
connections = append(connections, connection)
}