mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
dante: move to trunk and add myself as maintainer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33699 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
--- a/lib/addressmatch.c
|
||||
+++ b/lib/addressmatch.c
|
||||
@@ -399,18 +399,6 @@ addrmatch(rule, address, protocol, alias
|
||||
if (hostareeq(rule->addr.domain, hostent->h_name)
|
||||
|| hostisinlist(rule->addr.domain, (const char **)hostent->h_aliases))
|
||||
matched = 1;
|
||||
-#if !HAVE_NO_RESOLVESTUFF
|
||||
- else if (strchr(hostent->h_name, '.') == NULL) {
|
||||
- /* if hostname we got is non-qualified, try to qualify it. */
|
||||
- char fqdn[MAXHOSTNAMELEN];
|
||||
-
|
||||
- snprintf(fqdn, sizeof(fqdn), "%s.%s",
|
||||
- hostent->h_name, _res.defdname);
|
||||
-
|
||||
- if (hostareeq(rule->addr.domain, fqdn))
|
||||
- matched = 1;
|
||||
- }
|
||||
-#endif /* !HAVE_NO_RESOLVESTUFF */
|
||||
}
|
||||
|
||||
if (!matched && alias) {
|
||||
@@ -465,20 +453,6 @@ addrmatch(rule, address, protocol, alias
|
||||
matched = 1;
|
||||
break;
|
||||
}
|
||||
-#if !HAVE_NO_RESOLVESTUFF
|
||||
- else if (strchr(ip->h_name, '.') == NULL) {
|
||||
- /* if hostname we got is non-qualified, try to qualify it. */
|
||||
- char fqdn[MAXHOSTNAMELEN];
|
||||
-
|
||||
- snprintf(fqdn, sizeof(fqdn), "%s.%s",
|
||||
- ip->h_name, _res.defdname);
|
||||
-
|
||||
- if (hostareeq(rule->addr.domain, fqdn)) {
|
||||
- matched = 1;
|
||||
- break;
|
||||
- }
|
||||
- }
|
||||
-#endif /* !HAVE_NO_RESOLVESTUFF */
|
||||
}
|
||||
|
||||
hostentfree(host);
|
||||
Reference in New Issue
Block a user