Skip to content

Commit

Permalink
Merge pull request #337 from zaoangod/master
Browse files Browse the repository at this point in the history
fix getting ip address defects
  • Loading branch information
hellokaton authored Mar 6, 2019
2 parents 55e516a + b32168e commit 0e78c6e
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 0e78c6e

Please sign in to comment.