Skip to content

Commit 5860373

Browse files
committed
白名单更新
1 parent b18d152 commit 5860373

File tree

1 file changed

+1
-1
lines changed
  • SpringBootDemo/src/main/java/com/xiaour/spring/boot/filter

1 file changed

+1
-1
lines changed

SpringBootDemo/src/main/java/com/xiaour/spring/boot/filter/MyFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
@WebServlet(urlPatterns = "/druid/*",
2525
initParams={
26-
@WebInitParam(name="allow",value="192.168.0.230,127.0.0.1"),// IP白名单 (没有配置或者为空,则允许所有访问)
26+
@WebInitParam(name="allow",value=""),// IP白名单 (没有配置或者为空,则允许所有访问)
2727
@WebInitParam(name="deny",value="192.168.0.1"),// IP黑名单 (存在共同时,deny优先于allow)
2828
@WebInitParam(name="loginUsername",value="root"),// 用户名
2929
@WebInitParam(name="loginPassword",value="123456"),// 密码

0 commit comments

Comments
 (0)