内网不校验token
This commit is contained in:
parent
dce024ec9a
commit
2439e668eb
|
|
@ -77,7 +77,7 @@ public class SaTokenConfigure implements WebMvcConfigurer {
|
|||
.check(r -> {
|
||||
ServletRequestAttributes attributes =
|
||||
(ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
||||
if (attributes == null || !ServletUtil.getClientIP(attributes.getRequest()).contains("192.168")) {
|
||||
if (attributes == null || (!ServletUtil.getClientIP(attributes.getRequest()).contains("192.168") && !ServletUtil.getClientIP(attributes.getRequest()).contains("127.0.0.1"))) {
|
||||
MyStpLogic.ADMIN_LOGIC.checkLogin();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue