Browse Source

Move the redirect url perfer to volume server's PublicUrl

pull/84/head
yourchanges 10 years ago
parent
commit
701bb9af19
  1. 3
      go/topology/data_node.go

3
go/topology/data_node.go

@ -87,6 +87,9 @@ func (dn *DataNode) MatchLocation(ip string, port int) bool {
}
func (dn *DataNode) Url() string {
if dn.PublicUrl != "" {
return dn.PublicUrl
}
return dn.Ip + ":" + strconv.Itoa(dn.Port)
}

Loading…
Cancel
Save