[JDEV] About IP-restricted registration

Ru-Shan Cheng minamy at pchome.com.tw
Sun Jun 1 22:45:26 CDT 2003


About IP-restricted Registration

Hi all,

The question is the server only accept the registration from some restricted-ip,
and clients still can connect to jabber server as usual. 

I had been posted this problem on May 5, and David showed some clues that 
I can modify jabber server code in js_authreg() at jsm/authreg.c.

Now I have to pass the client's address in mio.c's _mio_accept() to 
authreg.c's js_authreg() to do some matches.

But I don't know where the connection-wide string variable should place.
Because the string will change when new connection comming, 
I cannot use global string to pass the variable, and the jabber server code 
is so complicated.

Any pointers will be helpful. Thanks a million!! :)þãÿÿÿÿÿÏÿøm¶ŸÿýçfþšàýêZ¥êÿr‰ÿ·Ü–'$þ˜iý§ÿr‡^ï<(h™ïÿÿÿÆÿÖÿÿÿÿÿÿÿÿÿÿÿȆÛiÿÿ솊iŠxÿ¥Èh™ïÜ¢oíÃ



More information about the JDev mailing list