Merge pull request #1925 from ROBLOX/master
Allow setting IP when using DHCP private network
This commit is contained in:
commit
bb808635f4
|
@ -220,7 +220,7 @@ module VagrantPlugins
|
|||
options[:type] = options[:type].to_sym
|
||||
|
||||
# Default IP is in the 20-bit private network block for DHCP based networks
|
||||
options[:ip] = "172.28.128.1" if options[:type] == :dhcp
|
||||
options[:ip] = "172.28.128.1" if options[:type] == :dhcp && options[:ip].nil?
|
||||
|
||||
# Calculate our network address for the given IP/netmask
|
||||
netaddr = network_address(options[:ip], options[:netmask])
|
||||
|
|
Loading…
Reference in New Issue