Adding support for IPv6.

This commit is contained in:
stephb9959
2021-12-10 13:04:49 -08:00
parent 6cb52bb005
commit 6b29954120
10 changed files with 80 additions and 69 deletions

View File

@@ -9,12 +9,13 @@
namespace OpenWifi {
class RESTAPI_wiredClients_handler : public RESTAPIHandler {
public:
RESTAPI_wiredClients_handler(const RESTAPIHandler::BindingMap &bindings, Poco::Logger &L, RESTAPI_GenericServer & Server, bool Internal)
RESTAPI_wiredClients_handler(const RESTAPIHandler::BindingMap &bindings, Poco::Logger &L, RESTAPI_GenericServer & Server, uint64_t TransactionId, bool Internal)
: RESTAPIHandler(bindings, L,
std::vector<std::string>{
Poco::Net::HTTPRequest::HTTP_GET,
Poco::Net::HTTPRequest::HTTP_OPTIONS},
Server,
TransactionId,
Internal,true, false, RateLimit{.Interval=1000,.MaxCalls=10}, true){}
static const std::list<const char *> PathName() { return std::list<const char *>{"/api/v1/wiredClients"}; };