Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
head_group
xyqb-user2
Commits
efe98602
Commit
efe98602
authored
Dec 06, 2017
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规范log
parent
300991d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
IpValidateAdvisor.java
.../quantgroup/xyqb/aspect/accessable/IpValidateAdvisor.java
+1
-1
IPWhiteListInterceptor.java
.../quantgroup/xyqb/interceptors/IPWhiteListInterceptor.java
+1
-1
No files found.
src/main/java/cn/quantgroup/xyqb/aspect/accessable/IpValidateAdvisor.java
View file @
efe98602
...
@@ -54,7 +54,7 @@ public class IpValidateAdvisor {
...
@@ -54,7 +54,7 @@ public class IpValidateAdvisor {
return
pjp
.
proceed
();
return
pjp
.
proceed
();
}
}
IPUtil
.
logIp
(
LOGGER
,
request
);
IPUtil
.
logIp
(
LOGGER
,
request
);
LOGGER
.
error
(
"
白名单不匹配拦截:ip=
{}"
,
clientIp
);
LOGGER
.
error
(
"
Lock_ipv4: don't match white ip access:
{}"
,
clientIp
);
return
JsonResult
.
buildErrorStateResult
(
"非法访问"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"非法访问"
,
null
);
}
}
}
}
src/main/java/cn/quantgroup/xyqb/interceptors/IPWhiteListInterceptor.java
View file @
efe98602
...
@@ -32,7 +32,7 @@ public class IPWhiteListInterceptor implements HandlerInterceptor {
...
@@ -32,7 +32,7 @@ public class IPWhiteListInterceptor implements HandlerInterceptor {
if
(
IPUtil
.
whiteOf
(
remoteIP
))
{
if
(
IPUtil
.
whiteOf
(
remoteIP
))
{
return
true
;
return
true
;
}
}
LOGGER
.
info
(
"
白名单不匹配拦截:ip=
{}"
,
remoteIP
);
LOGGER
.
info
(
"
Lock_ipv4: don't match white ip access:
{}"
,
remoteIP
);
return
false
;
return
false
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment