Open btbutts opened 4 weeks ago
Based on the provided API responses for v4 and v6, here are the key differences:
Offline Status:
offline
attribute indicating whether the server is offline.Server Information:
ip
and cn
for different protocols (ikev2, meta, ovpntcp, ovpnudp, wg).van
for ovpntcp
and ovpnudp
, which might denote extra server capabilities or configurations.Here’s a summary table for clarity:
Feature | v4 | v6 |
---|---|---|
Offline Status | Not included | offline attribute included |
Server Details | Basic (ip, cn) | Additional attributes (e.g., van for ovpn) |
The van
attribute and offline
status in v6 provide more detailed information about server capabilities and status, which could help in making better-informed decisions when connecting to a server.
I would just update to v6 endpoints, I believe v4 are only still available for older outdated versions, of the PIA clients anyways, which users haven't clicked on update yet.
Hello @hsand,
First, I'd like to complement you on the python script you've created here. It's been much easier to work with when I load it into my containers. Great job! Really. Thank you.
@MikealSouth submitted issue #22, stating that the generated configs are only good for a couple hours. Well, a few months later and it seems that the configs generated via the current v4 URL
https://serverlist.piaservers.net/vpninfo/servers/v4
in yourpiawg.py
script are no longer working at all, by and large. The configs generate successfully, as the script exits correctly, and I can establish a WireGuard tunnel, but no traffic will pass through it whatsoever. Occasionally, one of the configs might work, but I found I'd have to regenerate the config using different server targets at random at least a dozen or more times before I could get one to work with the existing v4 URL.When I compared your script to @PIA-foss's
get_region.sh
script, I noticed that they are using the v6 URLhttps://serverlist.piaservers.net/vpninfo/servers/v6
. @PIA-foss's get_region.sh script works the first time, every time so I changed the v4 URL in your piawg.py script to the v6 URL target and then your script began working the first time, every time.You may want to consider updating your script to use the v6 URL as it seems that there's something either outdated, deprecated, or wrong about the v4 URL, even though that v4 URL is still up and working if you hit it manually in a browser.
Thanks again! -Brian