diff --git a/src/main/java/com/blade/mvc/http/Request.java b/src/main/java/com/blade/mvc/http/Request.java index b7d0e105b..c413125b3 100644 --- a/src/main/java/com/blade/mvc/http/Request.java +++ b/src/main/java/com/blade/mvc/http/Request.java @@ -290,7 +290,7 @@ default boolean queryBoolean(@NonNull String name, Boolean defaultValue) { default String address() { String address = WebKit.ipAddress(this); if (StringKit.isBlank(address) || UNKNOWN_MAGIC.equalsIgnoreCase(address)) { - address = remoteAddress().split(":")[0].substring(1); + address = remoteAddress().split(":")[0]; } if (StringKit.isBlank(address)) { address = "Unknown";