内网不校验token
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user