Wireless Devices are auto-set up for DHCP
This commit is contained in:
		| @@ -72,6 +72,7 @@ namespace EduNetworkBuilder | ||||
|                 if (what == NetworkComponentType.laptop ) | ||||
|                 { | ||||
|                     tnic = new NetworkCard(NICs.Count(), GetUniqueIdentifier, hostname,NicType.wlan); //Add a wireless nic | ||||
|                     tnic.SetIPForDHCP(); | ||||
|                     NICs.Add(tnic); | ||||
|                 } | ||||
|                 if (what == NetworkComponentType.wbridge) | ||||
| @@ -158,6 +159,7 @@ namespace EduNetworkBuilder | ||||
|                     tnic = new NetworkCard(0, GetUniqueIdentifier, hostname, NicType.lo); | ||||
|                     NICs.Add(tnic); | ||||
|                     tnic = new NetworkCard(0, GetUniqueIdentifier, hostname, NicType.wlan); | ||||
|                     tnic.SetIPForDHCP(); | ||||
|                     NICs.Add(tnic); | ||||
|                 } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user