mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	IP检查也支持灰名单
This commit is contained in:
		@@ -14291,7 +14291,7 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "name": "CheckHTTPFirewallPolicyIPStatusResponse",
 | 
					      "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": ""
 | 
					      "doc": ""
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1189,7 +1189,7 @@ type CheckHTTPFirewallPolicyIPStatusResponse struct {
 | 
				
			|||||||
	IsOk           bool            `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`                    // 是否查询成功
 | 
						IsOk           bool            `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`                    // 是否查询成功
 | 
				
			||||||
	Error          string          `protobuf:"bytes,2,opt,name=error,proto3" json:"error,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"`              // 是否找到
 | 
						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
 | 
						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
 | 
						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"`   // 匹配到封禁的地区
 | 
						RegionCountry  *RegionCountry  `protobuf:"bytes,7,opt,name=regionCountry,proto3" json:"regionCountry,omitempty"`   // 匹配到封禁的地区
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -181,7 +181,7 @@ message CheckHTTPFirewallPolicyIPStatusResponse {
 | 
				
			|||||||
	bool isOk = 1; // 是否查询成功
 | 
						bool isOk = 1; // 是否查询成功
 | 
				
			||||||
	string error = 2; // 错误信息
 | 
						string error = 2; // 错误信息
 | 
				
			||||||
	bool isFound = 3; // 是否找到
 | 
						bool isFound = 3; // 是否找到
 | 
				
			||||||
	bool isAllowed = 4; // 是否允许
 | 
						bool isAllowed = 4; // 是否允许访问
 | 
				
			||||||
	IPList ipList = 5; // 匹配的IPList
 | 
						IPList ipList = 5; // 匹配的IPList
 | 
				
			||||||
	IPItem ipItem = 6; // 匹配的IPItem
 | 
						IPItem ipItem = 6; // 匹配的IPItem
 | 
				
			||||||
	RegionCountry regionCountry = 7; // 匹配到封禁的地区
 | 
						RegionCountry regionCountry = 7; // 匹配到封禁的地区
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user