feat(dns): add DNS server with configurable port and IP via CLI
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "cli_base.hpp"
|
||||
#include <string>
|
||||
|
||||
class DnsCli : public CliBase
|
||||
{
|
||||
public:
|
||||
DnsCli();
|
||||
|
||||
int getPort() const;
|
||||
std::string getIp() const;
|
||||
|
||||
protected:
|
||||
void setupOptions() override;
|
||||
|
||||
private:
|
||||
int port_;
|
||||
std::string ip_;
|
||||
};
|
||||
Reference in New Issue
Block a user