Changeset 027d2eb for protocols/jabber
- Timestamp:
- 2005-12-02T11:43:47Z (19 years ago)
- Branches:
- master
- Children:
- f1df064
- Parents:
- 626b446
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.