This commit is contained in:
yusing
2025-04-14 06:40:10 +08:00
parent eb7495b02a
commit dc1102905b
4 changed files with 7 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ func (mon *HTTPHealthMonitor) CheckHealth() (result *health.HealthCheckResult, e
}
req.Close = true
req.Header.Set("Connection", "close")
req.Header.Set("User-Agent", "GoDoxy/"+pkg.GetVersion())
req.Header.Set("User-Agent", "GoDoxy/"+pkg.GetVersion().String())
start := time.Now()
resp, respErr := pinger.Do(req)