From c8bdcf429f8bf00f88d48a0369d01426ab259cfd Mon Sep 17 00:00:00 2001 From: Patrick Schork Date: Tue, 30 Apr 2024 00:31:46 -0700 Subject: [PATCH] Debug --- disperser/dataapi/operator_handlers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disperser/dataapi/operator_handlers.go b/disperser/dataapi/operator_handlers.go index 8e9e85084a..be32e149c2 100644 --- a/disperser/dataapi/operator_handlers.go +++ b/disperser/dataapi/operator_handlers.go @@ -3,6 +3,7 @@ package dataapi import ( "context" "errors" + "fmt" "net" "sort" "strings" @@ -107,6 +108,7 @@ func checkIsOnlineAndProcessOperator(operatorStatus OperatorOnlineStatus, operat // Check that the socketString is not private/unspecified func ValidOperatorIP(socketString string, logger logging.Logger) bool { + fmt.Printf(">>>> socketString: %s\n", socketString) host := strings.Split(socketString, ":")[0] ips, err := net.LookupIP(host) if err != nil { @@ -119,6 +121,7 @@ func ValidOperatorIP(socketString string, logger logging.Logger) bool { return false } isValid := !ipAddr.IsPrivate() && !ipAddr.IsUnspecified() + fmt.Printf(">>>> isValid: %v\n", isValid) logger.Debug("Operator IP validation", "socketString", socketString, "host", host, "ips", ips, "ipAddr", ipAddr, "isValid", isValid) return isValid