mirror of
https://github.com/GNS3/gns3-server
synced 2025-02-02 11:21:10 +00:00
Do not require a TAP interface to already exist. Fixes #321.
This commit is contained in:
parent
d01a8bfb34
commit
9737783eb6
@ -372,8 +372,8 @@ class BaseManager:
|
|||||||
nio = NIOUDP(lport, rhost, rport)
|
nio = NIOUDP(lport, rhost, rport)
|
||||||
elif nio_settings["type"] == "nio_tap":
|
elif nio_settings["type"] == "nio_tap":
|
||||||
tap_device = nio_settings["tap_device"]
|
tap_device = nio_settings["tap_device"]
|
||||||
if not is_interface_up(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))
|
# raise aiohttp.web.HTTPConflict(text="TAP interface {} does not exist or is down".format(tap_device))
|
||||||
# FIXME: check for permissions on tap device
|
# FIXME: check for permissions on tap device
|
||||||
# if not self.has_privileged_access(executable):
|
# if not self.has_privileged_access(executable):
|
||||||
# raise aiohttp.web.HTTPForbidden(text="{} has no privileged access to {}.".format(executable, tap_device))
|
# raise aiohttp.web.HTTPForbidden(text="{} has no privileged access to {}.".format(executable, tap_device))
|
||||||
|
Loading…
Reference in New Issue
Block a user