mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
let is_localhost() do its lower_case itself.. thx fip
This commit is contained in:
parent
15dd8c0ada
commit
a0cc248e00
15 changed files with 25 additions and 25 deletions
|
@ -269,7 +269,7 @@ jabberMsg(XMLNode node) {
|
|||
// if we dont know the host, complain
|
||||
// put NAMEPREP(_host_XMPP) into the localhost mapping pleeeease
|
||||
//if (target != NAMEPREP(_host_XMPP)) {
|
||||
unless (is_localhost(lower_case(target))) {
|
||||
unless (is_localhost(target)) {
|
||||
monitor_report("_error_unknown_host",
|
||||
sprintf("%O sent us a dialback packet believing we would be %O",
|
||||
source, target));
|
||||
|
@ -349,7 +349,7 @@ jabberMsg(XMLNode node) {
|
|||
* then croak with a host-unknown and commit suicide
|
||||
*/
|
||||
// same as above...
|
||||
unless (is_localhost(lower_case(target))) {
|
||||
unless (is_localhost(target)) {
|
||||
emit(sprintf("<db:verify from='%s' to='%s' id='%s' type='error'>"
|
||||
"<error type='cancel'>"
|
||||
"<item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>"
|
||||
|
@ -498,7 +498,7 @@ open_stream(XMLNode node) {
|
|||
if (node["@from"]) {
|
||||
packet += "to='" + node["@from"] + "' ";
|
||||
}
|
||||
if (node["@to"] && !(is_localhost(lower_case(node["@to"])))) {
|
||||
if (node["@to"] && !(is_localhost(node["@to"]))) {
|
||||
emit(packet + ">");
|
||||
STREAM_ERROR("host-unknown", "")
|
||||
QUIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue