Skip to content

Commit

Permalink
Merge pull request #219 from HenryNe/tuntap-name-patch-1
Browse files Browse the repository at this point in the history
Fix missing /dev/net/tap
  • Loading branch information
s-vincent authored Mar 23, 2020
2 parents b14fd18 + 02eb92d commit 779a142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/asiotap/src/posix/posix_tap_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ namespace asiotap
m_existing_tap = !_name.empty();

#if defined(LINUX)
const std::string dev_name = (layer() == tap_adapter_layer::ethernet) ? "/dev/net/tap" : "/dev/net/tun";
const std::string dev_name = "/dev/net/tun";

if (::access(dev_name.c_str(), F_OK) == -1)
{
Expand Down

0 comments on commit 779a142

Please sign in to comment.