Skip to content

Commit acf779f

Browse files
authored
Merge pull request #317 from imonteroperez/adapt-ipv6
Adapt DirectArtifactManagerFactory to run test on IPv6
2 parents 08651df + 5be7d77 commit acf779f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/jenkinsci/plugins/workflow/DirectArtifactManagerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public DirectArtifactManagerFactory() throws Exception {
102102
}).
103103
create();
104104
server.start();
105-
baseURL = new URL("http://" + server.getInetAddress().getHostName() + ":" + server.getLocalPort() + "/");
105+
baseURL = new URL("http", server.getInetAddress().getHostName(), server.getLocalPort(), "/");
106106
LOGGER.log(Level.INFO, "Mock server running at {0}", baseURL);
107107

108108
}

0 commit comments

Comments
 (0)