mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-20 19:04:11 +02:00
Changed healthcheck to only ping 1.1.1.1 to check connectivity
This is because your VPN public IP might not be the VPN server entrance IP address, resulting in the container being unhealthy most of the time.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
ping -W 1 -w 1 -q -s 8 1.1.1.1 &> /dev/null
|
||||
status=$?
|
||||
if [ $status = 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
printf "Pinging 1.1.1.1 resulted in error status code $status"
|
||||
exit 1
|
||||
Reference in New Issue
Block a user