Check /etc/hosts before DNS when doing arp entry name lookup
This commit is contained in:
		| @@ -4,6 +4,7 @@ use strict; | ||||
| use warnings FATAL => 'all'; | ||||
|  | ||||
| use Net::DNS; | ||||
| use AnyEvent::DNS::EtcHosts; | ||||
| use AnyEvent::DNS; | ||||
|  | ||||
| use base 'Exporter'; | ||||
|   | ||||
| @@ -91,7 +91,7 @@ sub check_acl { | ||||
|           next unless $device->in_storage; | ||||
|  | ||||
|           # lazy version of vendor: and model: | ||||
|           if ($device->can($prop) and defined $device->prop | ||||
|           if ($device->can($prop) and defined $device->$prop | ||||
|               and $device->$prop =~ m/^$match$/) { | ||||
|               return 1; | ||||
|           } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user