Fix node IP discovery, force to ipv4

This commit is contained in:
David Zhao
2020-12-05 23:36:45 -08:00
parent 2b9fee45c4
commit d4f30c126f
3 changed files with 45 additions and 14 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ var (
)
func PrintJSON(obj interface{}) {
txt, _ := json.Marshal(obj)
txt, _ := json.MarshalIndent(obj, "", " ")
fmt.Println(string(txt))
}