working commit
This commit is contained in:
+5
-5
@@ -75,16 +75,16 @@ std::expected<void, std::string> TunService::Listen(void) {
|
||||
|
||||
|
||||
void TunService::Handle(int sock) {
|
||||
auto prefixRes = netprefix(tunnelnet);
|
||||
if (!prefixRes) {
|
||||
uxlogger.Error(prefixRes.error());
|
||||
return;
|
||||
}
|
||||
auto networkRes = network(tunnelnet);
|
||||
if (!networkRes) {
|
||||
uxlogger.Error(networkRes.error());
|
||||
return;
|
||||
}
|
||||
auto prefixRes = netprefix(tunnelnet);
|
||||
if (!prefixRes) {
|
||||
uxlogger.Error(prefixRes.error());
|
||||
return;
|
||||
}
|
||||
int num = (sock - 3);
|
||||
auto localaddrRes = nethost(networkRes.value(), prefixRes.value(), num);
|
||||
if (!networkRes) {
|
||||
|
||||
Reference in New Issue
Block a user