Changeset 027d2eb


Ignore:
Timestamp:
2005-12-02T11:43:47Z (14 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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/CHANGES

    r626b446 r027d2eb  
    1919  better consistency. Don't forget to update your scripts!
    2020- AIM typing notifications are supported now.
     21- Jabber module only accepts ports 5220-5229 now, to prevent people from
     22  abusing it as a port scanner. We aren't aware of any Jabber server that
     23  runs on other ports than those. If you are, please warn us.
    2124
    2225Finished ...
  • 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.