Browse Source

fixed removing peers

worker-9 4 years ago
parent
commit
256c194081
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/helpers.go

+ 1 - 1
functions/helpers.go

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