Skip to content

Commit

Permalink
fix getting ip address defects
Browse files Browse the repository at this point in the history
  • Loading branch information
zaoangod committed Mar 6, 2019
1 parent 55e516a commit b32168e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/blade/mvc/http/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit b32168e

Please sign in to comment.