diff --git a/container/tomcat-8.5/src/main/java/org/jboss/modcluster/container/tomcat/SingleServiceServer.java b/container/tomcat-8.5/src/main/java/org/jboss/modcluster/container/tomcat/SingleServiceServer.java index 522421de..b78efdb0 100644 --- a/container/tomcat-8.5/src/main/java/org/jboss/modcluster/container/tomcat/SingleServiceServer.java +++ b/container/tomcat-8.5/src/main/java/org/jboss/modcluster/container/tomcat/SingleServiceServer.java @@ -100,7 +100,7 @@ public void setPortOffset(int i) { @Override public int getPortWithOffset() { - return this.service.getServer().getPort(); + return this.service.getServer().getPortWithOffset(); } @Override diff --git a/container/tomcat-8.5/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java b/container/tomcat-8.5/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java index 1652d0a5..6fefd06e 100644 --- a/container/tomcat-8.5/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java +++ b/container/tomcat-8.5/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java @@ -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 diff --git a/container/tomcat-9.0/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java b/container/tomcat-9.0/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java index 1652d0a5..6fefd06e 100644 --- a/container/tomcat-9.0/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java +++ b/container/tomcat-9.0/src/main/java/org/jboss/modcluster/container/tomcat/TomcatConnector.java @@ -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