fix bug tolerating the other guy's bug
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15401 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
101a921038
commit
2e40adccac
|
@ -1945,9 +1945,9 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
|
|||
}
|
||||
} else if (!strcasecmp(var, "NDLB-allow-bad-iananame")) {
|
||||
if (switch_true(val)) {
|
||||
sofia_set_pflag(profile, PFLAG_NDLB_ALLOW_BAD_IANANAME);
|
||||
profile->ndlb |= PFLAG_NDLB_ALLOW_BAD_IANANAME;
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_NDLB_ALLOW_BAD_IANANAME);
|
||||
profile->ndlb &= ~PFLAG_NDLB_ALLOW_BAD_IANANAME;
|
||||
}
|
||||
} else if (!strcasecmp(var, "aggressive-nat-detection")) {
|
||||
if (switch_true(val)) {
|
||||
|
@ -2694,9 +2694,9 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
|||
}
|
||||
} else if (!strcasecmp(var, "NDLB-allow-bad-iananame")) {
|
||||
if (switch_true(val)) {
|
||||
sofia_set_pflag(profile, PFLAG_NDLB_ALLOW_BAD_IANANAME);
|
||||
profile->ndlb |= PFLAG_NDLB_ALLOW_BAD_IANANAME;
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_NDLB_ALLOW_BAD_IANANAME);
|
||||
profile->ndlb &= ~PFLAG_NDLB_ALLOW_BAD_IANANAME;
|
||||
}
|
||||
} else if (!strcasecmp(var, "pass-rfc2833")) {
|
||||
if (switch_true(val)) {
|
||||
|
|
Loading…
Reference in New Issue