forked from Mirrors/freeswitch
fix seg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15853 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9d49a57b67
commit
b497fbd5f8
@ -341,14 +341,18 @@ 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 (!strncasecmp(domain_name, "www.", 3)) {
|
||||
domain_name += 4;
|
||||
if ((domain_name = (char *) r->requestInfo.host)) {
|
||||
if (!strncasecmp(domain_name, "www.", 3)) {
|
||||
domain_name += 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!domain_name) {
|
||||
if (globals.default_domain) {
|
||||
domain_name = globals.default_domain;
|
||||
} else {
|
||||
domain_name = switch_core_get_variable("domain");
|
||||
}
|
||||
} else if (globals.default_domain) {
|
||||
domain_name = globals.default_domain;
|
||||
} else {
|
||||
domain_name = switch_core_get_variable("domain");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user