diff --git a/Dockerfile b/Dockerfile index ec241206..1f17cd0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -124,7 +124,7 @@ ENV VPN_SERVICE_PROVIDER=pia \ LOG_LEVEL=info \ # Health HEALTH_SERVER_ADDRESS=127.0.0.1:9999 \ - HEALTH_TARGET_ADDRESS=github.com:443 \ + HEALTH_TARGET_ADDRESS=cloudflare.com:443 \ HEALTH_VPN_DURATION_INITIAL=6s \ HEALTH_VPN_DURATION_ADDITION=5s \ # DNS over TLS diff --git a/internal/configuration/settings/health.go b/internal/configuration/settings/health.go index c333a9fc..7ff45b36 100644 --- a/internal/configuration/settings/health.go +++ b/internal/configuration/settings/health.go @@ -65,7 +65,7 @@ func (h *Health) OverrideWith(other Health) { func (h *Health) SetDefaults() { h.ServerAddress = helpers.DefaultString(h.ServerAddress, "127.0.0.1:9999") - h.TargetAddress = helpers.DefaultString(h.TargetAddress, "github.com:443") + h.TargetAddress = helpers.DefaultString(h.TargetAddress, "cloudflare.com:443") h.VPN.setDefaults() } diff --git a/internal/configuration/settings/settings_test.go b/internal/configuration/settings/settings_test.go index 89f1ba16..0238e446 100644 --- a/internal/configuration/settings/settings_test.go +++ b/internal/configuration/settings/settings_test.go @@ -66,7 +66,7 @@ func Test_Settings_String(t *testing.T) { | └── Log level: INFO ├── Health settings: | ├── Server listening address: 127.0.0.1:9999 -| ├── Target address: github.com:443 +| ├── Target address: cloudflare.com:443 | └── VPN wait durations: | ├── Initial duration: 6s | └── Additional duration: 5s diff --git a/internal/healthcheck/health_test.go b/internal/healthcheck/health_test.go index b480c879..d30c4eb9 100644 --- a/internal/healthcheck/health_test.go +++ b/internal/healthcheck/health_test.go @@ -19,7 +19,7 @@ func Test_Server_healthCheck(t *testing.T) { t.Parallel() dialer := &net.Dialer{} - const address = "github.com:443" + const address = "cloudflare.com:443" server := &Server{ dialer: dialer,