Merge pull request #283 from bkkrw/master

Make MAC address regex check case insensitive
This commit is contained in:
Fabio Rehm 2014-05-12 22:45:57 -03:00
commit e1a29898a4

View file

@ -19,7 +19,7 @@ module Vagrant
dnsmasq_leases = read_dnsmasq_leases
@logger.debug "Attempting to load ip from dnsmasq leases (mac: #{mac_address})"
@logger.debug dnsmasq_leases
if dnsmasq_leases =~ /#{Regexp.escape mac_address}\s+([0-9.]+)\s+/
if dnsmasq_leases =~ /#{Regexp.escape mac_address}\s+([0-9.]+)\s+/i
ip = $1.to_s
break
else