|
|
@ -65,16 +65,10 @@ public class PolarisContextConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
private List<String> getAddressList(String addressInfo) {
|
|
|
|
private List<String> getAddressList(String addressInfo) {
|
|
|
|
List<String> addressList = new ArrayList<>();
|
|
|
|
List<String> addressList = new ArrayList<>();
|
|
|
|
//if not contain ',' then set one ip
|
|
|
|
String[] addresses = addressInfo.split(ADDRESS_SEPARATOR);
|
|
|
|
if (!properties.getAddress().contains(ADDRESS_SEPARATOR)) {
|
|
|
|
for (String address : addresses) {
|
|
|
|
URI uri = URI.create(addressInfo.trim());
|
|
|
|
URI uri = URI.create(address.trim());
|
|
|
|
addressList.add(uri.getAuthority());
|
|
|
|
addressList.add(uri.getAuthority());
|
|
|
|
} else {
|
|
|
|
|
|
|
|
String[] addresses = addressInfo.split(ADDRESS_SEPARATOR);
|
|
|
|
|
|
|
|
for (String address : addresses) {
|
|
|
|
|
|
|
|
URI uri = URI.create(address.trim());
|
|
|
|
|
|
|
|
addressList.add(uri.getAuthority());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return addressList;
|
|
|
|
return addressList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|