diff --git a/src/collectors/proxcluster/proxcluster_linux.go b/src/collectors/proxcluster/proxcluster_linux.go index d62ff82..2d03dfb 100644 --- a/src/collectors/proxcluster/proxcluster_linux.go +++ b/src/collectors/proxcluster/proxcluster_linux.go @@ -535,13 +535,10 @@ func collectDetailedNodesInfo(ctx context.Context, clusterName, clusterUUID stri if hostname, err := os.Hostname(); err == nil { // Получаем IP адрес текущей ноды var nodeIP string - if data, err := os.ReadFile("/proc/net/route"); err == nil { - // Простая логика для получения IP - if out, err := exec.CommandContext(ctx, "hostname", "-I").Output(); err == nil { - ips := strings.Fields(string(out)) - if len(ips) > 0 { - nodeIP = ips[0] - } + if out, err := exec.CommandContext(ctx, "hostname", "-I").Output(); err == nil { + ips := strings.Fields(string(out)) + if len(ips) > 0 { + nodeIP = ips[0] } }