summaryrefslogtreecommitdiffstats
path: root/cadi/client/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'cadi/client/src/main/java/org')
-rw-r--r--cadi/client/src/main/java/org/onap/aaf/cadi/locator/DNSLocator.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/cadi/client/src/main/java/org/onap/aaf/cadi/locator/DNSLocator.java b/cadi/client/src/main/java/org/onap/aaf/cadi/locator/DNSLocator.java
index b7c0b02c..66ef4b1e 100644
--- a/cadi/client/src/main/java/org/onap/aaf/cadi/locator/DNSLocator.java
+++ b/cadi/client/src/main/java/org/onap/aaf/cadi/locator/DNSLocator.java
@@ -187,6 +187,10 @@ public class DNSLocator implements Locator<URI> {
startPort = Integer.parseInt(aaf_locate.substring(left + 1, dash));
endPort = Integer.parseInt(aaf_locate.substring(dash + 1, right));
}
+ slash = aaf_locate.indexOf('/', start);
+ if(slash>=0) {
+ suffix = aaf_locate.substring(slash);
+ }
} else {
slash = aaf_locate.indexOf('/', start);
@@ -197,6 +201,7 @@ public class DNSLocator implements Locator<URI> {
startPort = endPort = Integer.parseInt(aaf_locate.substring(start));
} else {
startPort = endPort = Integer.parseInt(aaf_locate.substring(start, slash));
+ suffix = aaf_locate.substring(slash);
}
}
} else {