Commit d4541739 authored by dong's avatar dong

aserver去除ip白名单过滤拦截

parent 10f47257
...@@ -65,9 +65,9 @@ public class JwtInterceptor implements Interceptor { ...@@ -65,9 +65,9 @@ public class JwtInterceptor implements Interceptor {
System.out.println("解析验证请求中的ip--->"+ip); System.out.println("解析验证请求中的ip--->"+ip);
System.out.println("解析验证tooken中的ip--->"+claims.get("ip")); System.out.println("解析验证tooken中的ip--->"+claims.get("ip"));
// 验证IP // 验证IP
if (!filterIpAddress(getIpAddr(inv.getController().getRequest()), claims.get("ip", String.class))) { // if (!filterIpAddress(getIpAddr(inv.getController().getRequest()), claims.get("ip", String.class))) {
return false; // return false;
} // }
String username = claims.get("name", String.class); String username = claims.get("name", String.class);
inv.getController().setAttr("username", username); inv.getController().setAttr("username", username);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment