📄 iprules.h
字号:
#ifndef _IPALLOW_H_
#define _IPALLOW_H_
#include "proxymain.h"
#include <vector>
// rule type: deny or allow
enum IPRULETYPE { IPR_ALLOW, IPR_DENY };
// list of IP rules
typedef std::vector<CHARPTR> IPRULELIST; // list of IPRules
typedef std::vector<CHARPTR>* IPRULELISTPTR; // pointer to list of IPRules
// structure for complete IP ruleset
struct IPRULESET
{
IPRULETYPE basetype; // base type defines if this rule set is based on
// "deny all" or "allow all"
IPRULELISTPTR rulelist; // pointer to rulelist
};
// prototype for function to load IPRULE file
IPRULESET* LoadIPRules(CHARPTR file);
// function for checking a host
bool CheckIP(CHARPTR ip, IPRULESET* rules);
// function for releasing all memory reserved for a IPRULESET struct
void ReleaseIPRules(IPRULESET* rules);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -