Skip to content

Commit

Permalink
1.0.0正式版
Browse files Browse the repository at this point in the history
  • Loading branch information
fengwenyi committed Aug 3, 2018
1 parent f0b2b16 commit d12d7e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.fengwenyi</groupId>
<artifactId>JavaLib</artifactId>
<version>1.0.0-beta</version>
<version>1.0.0</version>

<parent>
<groupId>org.sonatype.oss</groupId>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/fengwenyi/javalib/util/RequestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public static String getRequestIp(HttpServletRequest request) throws UnknownHost
ip = ip.substring(0,ip.indexOf(","));
}
}
return ip;
//return ip;
return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : ip;
}

/**
Expand Down

0 comments on commit d12d7e1

Please sign in to comment.