From d9bc0b1aa9cc249ba8ae62cdf67cc5e6c19662a4 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 18 Apr 2023 11:22:16 +1000 Subject: [PATCH] Switch to using the SurfShark API for the health check, to check if the connection is secured or not. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f19bf35..67c3140 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ ENV LAN_NETWORK= ENV CREATE_TUN_DEVICE= ENV OVPN_CONFIGS= ENV ENABLE_KILL_SWITCH=true -HEALTHCHECK --interval=60s --timeout=10s --start-period=30s CMD curl -L 'https://ipinfo.io' +HEALTHCHECK --interval=60s --timeout=10s --start-period=30s CMD curl -s https://api.surfshark.com/v1/server/user | grep '"secured":true' COPY startup.sh . COPY sockd.conf /etc/ COPY sockd.sh .