mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Move the redirect url perfer to volume server's PublicUrl
This commit is contained in:
parent
2e0d0046c4
commit
701bb9af19
|
@ -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…
Reference in a new issue