fix(pia): try x.y.128.1 and x.y.0.1 from the gateway IP to find the API IP address

This commit is contained in:
Quentin McGaw
2026-04-22 00:42:23 +00:00
parent 792a5ff5f3
commit c3a6809447
2 changed files with 52 additions and 10 deletions
@@ -3,6 +3,7 @@ package privateinternetaccess
import (
"math/rand"
"net/http"
"net/netip"
"time"
"github.com/qdm12/gluetun/internal/constants/providers"
@@ -17,6 +18,7 @@ type Provider struct {
common.Fetcher
// Port forwarding
portForwardPath string
apiIP netip.Addr
}
func New(storage common.Storage, randSource rand.Source,