Commit e1d1256e authored by yangjian's avatar yangjian

update main.cpp

parent 8779c0bc
...@@ -87,8 +87,8 @@ int main(int argc, char **argv) { ...@@ -87,8 +87,8 @@ int main(int argc, char **argv) {
ausf_cfg.load(Options::getlibconfigConfig()); ausf_cfg.load(Options::getlibconfigConfig());
ausf_cfg.display(); ausf_cfg.display();
cout << endl << ausf_cfg.sbi.port << endl; //Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(ausf_cfg.sbi.port));
Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(ausf_cfg.sbi.port)); Pistache::Address addr(std::string(inet_ntoa (*((struct in_addr *)&ausf_cfg.sbi.addr4))), Pistache::Port(ausf_cfg.sbi.port));
httpEndpoint = new Pistache::Http::Endpoint((addr)); httpEndpoint = new Pistache::Http::Endpoint((addr));
auto router = std::make_shared<Pistache::Rest::Router>(); auto router = std::make_shared<Pistache::Rest::Router>();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment