Skip to content

Commit

Permalink
Properly fail when both http and https servers started on port
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Sep 18, 2024
1 parent 8e6e43d commit 6036d3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,8 @@ public void handle(AsyncResult<HttpServer> event) {

private void validateHttpPorts(int httpPort, int httpsPort) {
if (httpsPort == httpPort) {
throw new IllegalArgumentException("Both http and https servers started on port " + httpPort);
startFuture
.fail(new IllegalArgumentException("Both http and https servers started on port " + httpPort));
}
}
});
Expand Down

0 comments on commit 6036d3c

Please sign in to comment.