Do not require a TAP interface to already exist. Fixes #321.

This commit is contained in:
grossmj 2015-09-26 10:09:50 -06:00
parent d01a8bfb34
commit 9737783eb6

View File

@ -372,8 +372,8 @@ class BaseManager:
nio = NIOUDP(lport, rhost, rport)
elif nio_settings["type"] == "nio_tap":
tap_device = nio_settings["tap_device"]
if not is_interface_up(tap_device):
raise aiohttp.web.HTTPConflict(text="TAP interface {} does not exist or is down".format(tap_device))
#if not is_interface_up(tap_device):
# raise aiohttp.web.HTTPConflict(text="TAP interface {} does not exist or is down".format(tap_device))
# FIXME: check for permissions on tap device
# if not self.has_privileged_access(executable):
# raise aiohttp.web.HTTPForbidden(text="{} has no privileged access to {}.".format(executable, tap_device))