dperson / openvpn-client

GNU Affero General Public License v3.0
1.05k stars 585 forks source link

Healthcheck is using a currently unreliable website to determine if the connection is still established #416

Open seanwo opened 1 year ago

seanwo commented 1 year ago

Over the past few days I have noticed the healthcheck failing every couple of minutes. Turns out it is because the healthcheck is trying to curl https://api.ipify.org which does not seem to be reliably responding to requests.

Here is where the healthcheck is referencing that site: https://github.com/dperson/openvpn-client/blob/a08d70a5fd4c192390305accd5593f3348e04d4d/Dockerfile#L14

I have overridden the healthcheck on to use http://www.gstatic.com/generate_204 instead and that is working much better. If the site does not come back up or turns out to not be stable anymore to determine connectivity you may want to consider the link I am using as a work around. I have a container autohealer that was restarting this container every-time the healthcheck failed so I had to do something to get around this for now.

Thanks for considering an update to correct this.