2
0
Fork 0

[angel]: fix default allow-listen port detection

This commit is contained in:
Stefan Bühler 2010-08-26 18:18:59 +02:00
parent 2ad699f56e
commit 004e70479e
1 changed files with 2 additions and 2 deletions

View File

@ -351,7 +351,7 @@ static gboolean listen_check_acl(liServer *srv, liPluginCoreConfig *config, liSo
}
return FALSE;
} else {
return (ipv4->sin_port == 80 || ipv4->sin_port == 443);
return (port == 80 || port == 443);
}
} break;
#ifdef HAVE_IPV6
@ -377,7 +377,7 @@ static gboolean listen_check_acl(liServer *srv, liPluginCoreConfig *config, liSo
}
return FALSE;
} else {
return (ipv6->sin6_port == 80 || ipv6->sin6_port == 443);
return (port == 80 || port == 443);
}
} break;
#endif