From bd07693a513044166007e2e83f436a83477256d8 Mon Sep 17 00:00:00 2001 From: smallchill Date: Thu, 3 Jan 2019 14:34:08 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springblade/core/launch/server/ServerInfo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blade-core-launch/src/main/java/org/springblade/core/launch/server/ServerInfo.java b/blade-core-launch/src/main/java/org/springblade/core/launch/server/ServerInfo.java index 0a8b9d7..4940d25 100644 --- a/blade-core-launch/src/main/java/org/springblade/core/launch/server/ServerInfo.java +++ b/blade-core-launch/src/main/java/org/springblade/core/launch/server/ServerInfo.java @@ -29,7 +29,7 @@ public class ServerInfo { private InetUtils inetUtils; private String hostName; private String ip; - private Integer prot; + private Integer port; private String ipWithPort; public ServerInfo(ServerProperties serverProperties, InetUtils inetUtils) { @@ -37,8 +37,8 @@ public class ServerInfo { this.inetUtils = inetUtils; this.hostName = getHostInfo().getHostname(); this.ip = getHostInfo().getIpAddress(); - this.prot = serverProperties.getPort(); - this.ipWithPort = String.format("%s:%d", ip, prot); + this.port = serverProperties.getPort(); + this.ipWithPort = String.format("%s:%d", ip, port); } public InetUtils.HostInfo getHostInfo() { @@ -50,7 +50,7 @@ public class ServerInfo { } public Integer getPort() { - return this.prot; + return this.port; } public String getHostName() {