Loading tests/tun_forwarder.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ bool TunForwarder::addForwardingRule(const std::array<std::string, 2>& from, unique_fd TunForwarder::createTun(const std::string& ifname) { unique_fd fd(open("/dev/tun", O_RDWR | O_NONBLOCK | O_CLOEXEC)); if (!fd.ok() == -1) { if (!fd.ok()) { return {}; } Loading Loading
tests/tun_forwarder.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ bool TunForwarder::addForwardingRule(const std::array<std::string, 2>& from, unique_fd TunForwarder::createTun(const std::string& ifname) { unique_fd fd(open("/dev/tun", O_RDWR | O_NONBLOCK | O_CLOEXEC)); if (!fd.ok() == -1) { if (!fd.ok()) { return {}; } Loading