mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-01 18:10:57 +08:00
Move the redirect url perfer to volume server's PublicUrl (reverted from commit 701bb9af19
)
This commit is contained in:
parent
701bb9af19
commit
000c645d45
@ -87,9 +87,6 @@ func (dn *DataNode) MatchLocation(ip string, port int) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (dn *DataNode) Url() string {
|
func (dn *DataNode) Url() string {
|
||||||
if dn.PublicUrl != "" {
|
|
||||||
return dn.PublicUrl
|
|
||||||
}
|
|
||||||
return dn.Ip + ":" + strconv.Itoa(dn.Port)
|
return dn.Ip + ":" + strconv.Itoa(dn.Port)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user