Make lookups of host names more efficient

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6357 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-15 17:19:07 +00:00
parent b586281b6e
commit 668f13693b

View File

@ -66,7 +66,7 @@ sub valid_address( $ ) {
sub validate_address( $ ) {
unless ( valid_address $_[0] ) {
fatal_error "Unknown Host ($_[0])" unless qt "host $_[0]";
fatal_error "Unknown Host ($_[0])" unless defined gethostbyname $_[0];
}
}