git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15853 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-12-08 22:51:39 +00:00
parent 9d49a57b67
commit b497fbd5f8

View File

@ -341,16 +341,20 @@ static abyss_bool http_directory_auth(TSession *r, char *domain_name)
if (!domain_name) {
if (globals.virtual_host) {
domain_name = (char *) r->requestInfo.host;
if ((domain_name = (char *) r->requestInfo.host)) {
if (!strncasecmp(domain_name, "www.", 3)) {
domain_name += 4;
}
} else if (globals.default_domain) {
}
}
if (!domain_name) {
if (globals.default_domain) {
domain_name = globals.default_domain;
} else {
domain_name = switch_core_get_variable("domain");
}
}
}
if (zstr(user) || zstr(domain_name)) {
goto fail;