Sfoglia il codice sorgente

fixed removing peers

worker-9 4 anni fa
parent
commit
256c194081
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      functions/helpers.go

+ 1 - 1
functions/helpers.go

@@ -22,7 +22,7 @@ import (
 
 func CheckEndpoint(endpoint string) bool {
 	endpointarr := strings.Split(endpoint, ":")
-	return net.ParseIP(endpointarr[0]) == nil
+	return len(endpointarr) == 2
 }
 
 func PrintUserLog(username string, message string, loglevel int) {