working commit
This commit is contained in:
@@ -23,6 +23,10 @@ std::expected<void, std::string> Run() {
|
||||
auto localnets = config.Localnets();
|
||||
auto tunnelnet = config.Tunnelnet();
|
||||
TunService service(listport, tunnelnet, localnets);
|
||||
auto initRes = service.Init();
|
||||
if (!initRes) {
|
||||
return std::unexpected("Init error: " + initRes.error());
|
||||
}
|
||||
auto bindRes = service.Bind();
|
||||
if (!bindRes) {
|
||||
return std::unexpected("Bind error: " + bindRes.error());
|
||||
|
||||
Reference in New Issue
Block a user