adding port to firewall rule
This commit is contained in:
parent
bbebb4060e
commit
84991434ec
6 changed files with 121 additions and 19 deletions
|
@ -14,14 +14,6 @@
|
|||
|
||||
namespace fw
|
||||
{
|
||||
typedef struct api_endpoints
|
||||
{
|
||||
char uri[40];
|
||||
char method[7];
|
||||
char description[30];
|
||||
struct api_endpoints *next;
|
||||
} api_endpoint_t;
|
||||
|
||||
class API : public Rules
|
||||
{
|
||||
private:
|
||||
|
@ -62,6 +54,11 @@ namespace fw
|
|||
uint16_t server_port;
|
||||
void handle_client();
|
||||
String get_url_base();
|
||||
String protocol_to_string(firewall_protocol_t &protocol);
|
||||
firewall_protocol_t string_to_protocol(String &protocol);
|
||||
String target_to_string(firewall_target_t &target);
|
||||
firewall_target_t string_to_target(String &target);
|
||||
String response_code_to_string(const uint16_t response_code);
|
||||
|
||||
public:
|
||||
API(const char *cert, const char *key, const char *username, const char *password, const String ip, const uint16_t port);
|
||||
|
|
Reference in a new issue