Changeset 027d2eb for protocols/jabber


Ignore:
Timestamp:
2005-12-02T11:43:47Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
f1df064
Parents:
626b446
Message:

Modified CHANGES, and extended the allowed port range a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r626b446 r027d2eb  
    5555#define DEFAULT_PORT 5222
    5656#define DEFAULT_PORT_SSL 5223
     57#define JABBER_PORT_MIN 5220
     58#define JABBER_PORT_MAX 5229
    5759
    5860#define JABBER_GROUP "Friends"
     
    590592        else if (port == -1 && ssl)
    591593                port = DEFAULT_PORT_SSL;
    592         else if (port != 5222 && port != 5223) {
    593                 serv_got_crap(GJ_GC(gjc), "Only port numbers 5222 and 5223 are allowed for Jabber connections.");
     594        else if (port < JABBER_PORT_MIN || port > JABBER_PORT_MAX) {
     595                serv_got_crap(GJ_GC(gjc), "For security reasons, the Jabber port number must be in the %d-%d range.", JABBER_PORT_MIN, JABBER_PORT_MAX);
    594596                STATE_EVT(JCONN_STATE_OFF)
    595597                return;
Note: See TracChangeset for help on using the changeset viewer.