mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
Fix a bug in parsing the port value from a URL.
This commit is contained in:
parent
651b0eb49a
commit
70408ea717
@ -38,7 +38,7 @@ public abstract class URLStreamHandler {
|
|||||||
host = s.substring(0, slash);
|
host = s.substring(0, slash);
|
||||||
} else {
|
} else {
|
||||||
host = s.substring(0, colon);
|
host = s.substring(0, colon);
|
||||||
port = Integer.parseInt(s.substring(colon + 1), slash);
|
port = Integer.parseInt(s.substring(colon + 1, slash));
|
||||||
}
|
}
|
||||||
s = s.substring(slash + 1);
|
s = s.substring(slash + 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user