|
@ -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) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|