Gaël Bonithon
Gaël Bonithon
There is a mistake at line 370 (Custom DNS). To avoid this and make the code more readable, both `echo -e…` should be replaced by `cp "/etc/resolv.conf" "$(get_protonvpn_cli_home)/.resolv.conf.protonvpn_applied_backup"`
Yes, you're right! :)
@Hofer-Julian You have to appear as root in `$SUDO_USER`, so `sudo sudo pvpn --init` should work, if you can't or don't want to open a root shell to execute `pvpn...
Can you ping api.protonmail.ch? If not, don't you have a firewall somewhere on your connection that would be the cause?
Ok, so what about `wget --header 'x-pm-appversion: Other' --header 'x-pm-apiversion: 3' --header 'Accept: application/vnd.protonmail.v1+json' -o /dev/null --timeout 6 --tries 1 -O - 'https://api.protonmail.ch/vpn/location'`
Have you put the "#" for your IP, or is it the real output?
Ok, and `pvpn -ip` does not work at that time?
Ok, so `sudo pvpn --status` should also work. Can you verify?
The "Offline" Internet status is weird, because it is only based upon `pvpn --ip`. What about `sudo pvpn -ip`? Do you obtain the same output with or without `sudo`?
Ok, so perhaps that the problem comes from the call of python in the code. What about `sudo wget --header 'x-pm-appversion: Other' --header 'x-pm-apiversion: 3' --header 'Accept: application/vnd.protonmail.v1+json' -o /dev/null...