mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-17 14:58:13 +00:00
Do not connect GNS3 to remote server via 169.254.X.X
This commit is contained in:
@ -601,6 +601,9 @@ class Compute:
|
||||
# Skip if no ip or no netmask (vbox when stopped set a null netmask)
|
||||
if len(this_interface["ip_address"]) == 0 or this_interface["netmask"] is None:
|
||||
continue
|
||||
# Ignore 169.254 network because it's for Windows special purpose
|
||||
if this_interface["ip_address"].startswith("169.254."):
|
||||
continue
|
||||
|
||||
this_network = ipaddress.ip_network("{}/{}".format(this_interface["ip_address"], this_interface["netmask"]), strict=False)
|
||||
|
||||
|
Reference in New Issue
Block a user