Browse Source

url error

pull/2/head
Chris Lu 12 years ago
parent
commit
d63c5231ac
  1. 2
      weed-fs/src/pkg/topology/data_node.go

2
weed-fs/src/pkg/topology/data_node.go

@ -45,7 +45,7 @@ func (dn *DataNode) MatchLocation(ip string, port int) bool {
return dn.Ip == ip && dn.Port == port
}
func (dn *DataNode) Url() string {
return dn.Ip + strconv.Itoa(dn.Port)
return dn.Ip + ":" + strconv.Itoa(dn.Port)
}
func (dn *DataNode) ToMap() interface{} {

Loading…
Cancel
Save