We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 146baef commit e0a6363Copy full SHA for e0a6363
src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
@@ -435,7 +435,8 @@ private String parseUri(final String uri) {
435
throw new BuildException("no username was given. Can't authenticate.");
436
}
437
438
- final int indexOfPath = uri.indexOf(':', indexOfAt + 1);
+ // For IPv6 address having more than one ":", it should look for the last occurrence
439
+ final int indexOfPath = uri.lastIndexof(':');
440
if (indexOfPath == -1) {
441
throw new BuildException("no remote path in %s", uri);
442
0 commit comments