From 7d810a15c01587a74708a56b5b9739e7dbb0858a Mon Sep 17 00:00:00 2001 From: yanyiwu Date: Wed, 7 Jan 2015 16:47:57 +0800 Subject: [PATCH] fix bug about : writed needle into localfile twice when replicating, because of the ip is not equal : ":8080" != "127.0.0.1:8080" --- go/weed/volume.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/weed/volume.go b/go/weed/volume.go index 22b50cd34..1683e1927 100644 --- a/go/weed/volume.go +++ b/go/weed/volume.go @@ -71,6 +71,7 @@ func runVolume(cmd *Command, args []string) bool { if *publicIp == "" { if *ip == "" { + *ip = "127.0.0.1" *publicIp = "localhost" } else { *publicIp = *ip