Move the redirect url perfer to volume server's PublicUrl
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user