aboutsummaryrefslogtreecommitdiff
path: root/go/weed
diff options
context:
space:
mode:
authoryanyiwu <i@yanyiwu.com>2015-01-07 16:47:57 +0800
committeryanyiwu <i@yanyiwu.com>2015-01-07 16:47:57 +0800
commit7d810a15c01587a74708a56b5b9739e7dbb0858a (patch)
tree3a7e3f5481b58591f41c67448d994919d25bb82f /go/weed
parentf7f6f331dbadbdd43ac39e5dc2b1604a58c4076b (diff)
downloadseaweedfs-7d810a15c01587a74708a56b5b9739e7dbb0858a.tar.xz
seaweedfs-7d810a15c01587a74708a56b5b9739e7dbb0858a.zip
fix bug about : writed needle into localfile twice when replicating, because of the ip is not equal : ":8080" != "127.0.0.1:8080"
Diffstat (limited to 'go/weed')
-rw-r--r--go/weed/volume.go1
1 files changed, 1 insertions, 0 deletions
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