summaryrefslogtreecommitdiffstats
path: root/sdclient/discovery-service/src/main
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2018-01-19 08:24:26 +0000
committerHuabingZhao <zhao.huabing@zte.com.cn>2018-01-19 08:37:32 +0000
commitdd6a7438d0b312c6cea18bf44ca2f86e55b5b943 (patch)
treee447d33ce87ff1172948ae0dc140a66bd1e8d41f /sdclient/discovery-service/src/main
parentb767a32b7f3a238c890c7c8c9ae50fcbe74f5307 (diff)
Fix Nexus IQ security issue
Update dependencies to latest versions. Issue-ID: MSB-131 Change-Id: I3659a189b3b7b898970ae6efe8bb8e6a61804046 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'sdclient/discovery-service/src/main')
-rw-r--r--sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java
index 51b6449..a8851fc 100644
--- a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java
+++ b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java
@@ -66,6 +66,8 @@ public class Consul {
public boolean apply(final Class<?> clazz) {
return JacksonJaxbJsonProvider.class.isAssignableFrom(clazz);
}
+
+
}).first().isPresent()) {
builder.register(JacksonJaxbJsonProvider.class);
}
@@ -197,7 +199,7 @@ public class Consul {
*/
public Builder withHostAndPort(HostAndPort hostAndPort) {
try {
- this.url = new URL("http", hostAndPort.getHostText(), hostAndPort.getPort(), "");
+ this.url = new URL("http", hostAndPort.getHost(), hostAndPort.getPort(), "");
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}