mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
Fix bad comparison in healthcheck
This commit is contained in:
+2
-1
@@ -22,7 +22,8 @@ func HealthCheck() error {
|
||||
var vpnIPs []string
|
||||
for _, line := range strings.Split(string(b), "\n") {
|
||||
if strings.HasPrefix(line, "remote ") {
|
||||
vpnIPs = append(vpnIPs, strings.TrimPrefix(line, "remote "))
|
||||
fields := strings.Fields(line)
|
||||
vpnIPs = append(vpnIPs, fields[1])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user