Url is blocked: Requests to the local network are not allowed

gitlab配置webhook触发jenkins构建时提示: 

Url is blocked: Requests to the local network are not allowed(禁止向本地连接发送请求)

原因:

gitlab 10.6 版本以后为了安全,默认不允许向本地网络发送webhook请求

(既然是默认,也就是说还是可以修改的)

解决办法:

以管理员身份登录gitlab,进入adminarea(首页顶层一行有个小扳手图标)

Url is blocked: Requests to the local network are not allowed

接着左侧菜单栏----settings

下一级----------network

--------------outbound requests

expend

前面打勾(□ Allow requests to the local network from web hooks and services)

Url is blocked: Requests to the local network are not allowed

save保存设置