Skip to content

Commit

Permalink
Fix getPort function ignoring offset for tomcat-8.5/9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Nov 15, 2023
1 parent a7da5b2 commit 5f35004
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void setAddress(InetAddress address) {

@Override
public int getPort() {
return (this.externalPort == null) ? this.connector.getPort() : this.externalPort;
return (this.externalPort == null) ? this.connector.getPortWithOffset() : this.externalPort;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void setAddress(InetAddress address) {

@Override
public int getPort() {
return (this.externalPort == null) ? this.connector.getPort() : this.externalPort;
return (this.externalPort == null) ? this.connector.getPortWithOffset() : this.externalPort;
}

@Override
Expand Down

0 comments on commit 5f35004

Please sign in to comment.