IP检查也支持灰名单

This commit is contained in:
GoEdgeLab
2024-05-05 20:20:27 +08:00
parent e0bf7e3767
commit 784e1ea051
3 changed files with 3 additions and 3 deletions

View File

@@ -14291,7 +14291,7 @@
},
{
"name": "CheckHTTPFirewallPolicyIPStatusResponse",
"code": "message CheckHTTPFirewallPolicyIPStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2; // 错误信息\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许\n\tIPList ipList = 5; // 匹配的IPList\n\tIPItem ipItem = 6; // 匹配的IPItem\n\tRegionCountry regionCountry = 7; // 匹配到封禁的地区\n\tRegionProvince regionProvince = 8; // 匹配到封禁的省份\n}",
"code": "message CheckHTTPFirewallPolicyIPStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2; // 错误信息\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许访问\n\tIPList ipList = 5; // 匹配的IPList\n\tIPItem ipItem = 6; // 匹配的IPItem\n\tRegionCountry regionCountry = 7; // 匹配到封禁的地区\n\tRegionProvince regionProvince = 8; // 匹配到封禁的省份\n}",
"doc": ""
},
{

View File

@@ -1189,7 +1189,7 @@ type CheckHTTPFirewallPolicyIPStatusResponse struct {
IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"` // 是否查询成功
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // 错误信息
IsFound bool `protobuf:"varint,3,opt,name=isFound,proto3" json:"isFound,omitempty"` // 是否找到
IsAllowed bool `protobuf:"varint,4,opt,name=isAllowed,proto3" json:"isAllowed,omitempty"` // 是否允许
IsAllowed bool `protobuf:"varint,4,opt,name=isAllowed,proto3" json:"isAllowed,omitempty"` // 是否允许访问
IpList *IPList `protobuf:"bytes,5,opt,name=ipList,proto3" json:"ipList,omitempty"` // 匹配的IPList
IpItem *IPItem `protobuf:"bytes,6,opt,name=ipItem,proto3" json:"ipItem,omitempty"` // 匹配的IPItem
RegionCountry *RegionCountry `protobuf:"bytes,7,opt,name=regionCountry,proto3" json:"regionCountry,omitempty"` // 匹配到封禁的地区

View File

@@ -181,7 +181,7 @@ message CheckHTTPFirewallPolicyIPStatusResponse {
bool isOk = 1; // 是否查询成功
string error = 2; // 错误信息
bool isFound = 3; // 是否找到
bool isAllowed = 4; // 是否允许
bool isAllowed = 4; // 是否允许访问
IPList ipList = 5; // 匹配的IPList
IPItem ipItem = 6; // 匹配的IPItem
RegionCountry regionCountry = 7; // 匹配到封禁的地区