diff options
| author | yourchanges <yourchanges@gmail.com> | 2015-02-12 18:44:45 +0800 |
|---|---|---|
| committer | yourchanges <yourchanges@gmail.com> | 2015-02-12 18:44:45 +0800 |
| commit | 000c645d4569e1fc65c3248950106d702cdb4a10 (patch) | |
| tree | da968af4fa066dfd281ae0ef4e6d59d806fed10e /go | |
| parent | 701bb9af19d9773896eb360c921a4c7fb6a2a2ea (diff) | |
| download | seaweedfs-000c645d4569e1fc65c3248950106d702cdb4a10.tar.xz seaweedfs-000c645d4569e1fc65c3248950106d702cdb4a10.zip | |
Move the redirect url perfer to volume server's PublicUrl (reverted from commit 701bb9af19d9773896eb360c921a4c7fb6a2a2ea)
Diffstat (limited to 'go')
| -rw-r--r-- | go/topology/data_node.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/go/topology/data_node.go b/go/topology/data_node.go index c7d04d953..2d0a093cc 100644 --- a/go/topology/data_node.go +++ b/go/topology/data_node.go @@ -87,9 +87,6 @@ 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) } |
