version 1.180, 2008/05/08 12:21:16 |
version 1.181, 2008/06/10 03:57:27 |
|
|
debug("connection from %.100s matched 'Host " |
debug("connection from %.100s matched 'Host " |
"%.100s' at line %d", host, arg, line); |
"%.100s' at line %d", host, arg, line); |
} else if (strcasecmp(attrib, "address") == 0) { |
} else if (strcasecmp(attrib, "address") == 0) { |
if (!address) { |
switch (addr_match_list(address, arg)) { |
result = 0; |
case 1: |
continue; |
|
} |
|
if (match_hostname(address, arg, len) != 1) |
|
result = 0; |
|
else |
|
debug("connection from %.100s matched 'Address " |
debug("connection from %.100s matched 'Address " |
"%.100s' at line %d", address, arg, line); |
"%.100s' at line %d", address, arg, line); |
|
break; |
|
case 0: |
|
result = 0; |
|
break; |
|
case -1: |
|
return -1; |
|
} |
} else { |
} else { |
error("Unsupported Match attribute %s", attrib); |
error("Unsupported Match attribute %s", attrib); |
return -1; |
return -1; |