Changeset 027d2eb
- Timestamp:
- 2005-12-02T11:43:47Z (19 years ago)
- Branches:
- master
- Children:
- f1df064
- Parents:
- 626b446
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/CHANGES
r626b446 r027d2eb 19 19 better consistency. Don't forget to update your scripts! 20 20 - 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. 21 24 22 25 Finished ... -
protocols/jabber/jabber.c
r626b446 r027d2eb 55 55 #define DEFAULT_PORT 5222 56 56 #define DEFAULT_PORT_SSL 5223 57 #define JABBER_PORT_MIN 5220 58 #define JABBER_PORT_MAX 5229 57 59 58 60 #define JABBER_GROUP "Friends" … … 590 592 else if (port == -1 && ssl) 591 593 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); 594 596 STATE_EVT(JCONN_STATE_OFF) 595 597 return;
Note: See TracChangeset
for help on using the changeset viewer.