Browse Source

fixed removing peers

worker-9 4 năm trước cách đây
mục cha
commit
256c194081
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {