Merge pull request #283 from bkkrw/master
Make MAC address regex check case insensitive
This commit is contained in:
commit
e1a29898a4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue