chore(portforward): remove PIA dependency on storage package
This commit is contained in:
@@ -60,13 +60,14 @@ func GetConnection(provider string,
|
||||
}
|
||||
|
||||
connection := models.Connection{
|
||||
Type: selection.VPN,
|
||||
IP: ip,
|
||||
Port: port,
|
||||
Protocol: protocol,
|
||||
Hostname: hostname,
|
||||
ServerName: server.ServerName,
|
||||
PubKey: server.WgPubKey, // Wireguard
|
||||
Type: selection.VPN,
|
||||
IP: ip,
|
||||
Port: port,
|
||||
Protocol: protocol,
|
||||
Hostname: hostname,
|
||||
ServerName: server.ServerName,
|
||||
PortForward: server.PortForward,
|
||||
PubKey: server.WgPubKey, // Wireguard
|
||||
}
|
||||
connections = append(connections, connection)
|
||||
}
|
||||
|
||||
@@ -15,11 +15,10 @@ type PortForwardObjects struct {
|
||||
Gateway netip.Addr
|
||||
// Client is used to query the VPN gateway for Private Internet Access.
|
||||
Client *http.Client
|
||||
// ServerName is used by Private Internet Access for port forwarding,
|
||||
// and to look up the server data from storage.
|
||||
// TODO use server data directly to remove storage dependency for port
|
||||
// forwarding implementation.
|
||||
// ServerName is used by Private Internet Access for port forwarding.
|
||||
ServerName string
|
||||
// CanPortForward is used by Private Internet Access for port forwarding.
|
||||
CanPortForward bool
|
||||
}
|
||||
|
||||
type Routing interface {
|
||||
|
||||
Reference in New Issue
Block a user