[JDEV] Jabber server hostname and JIDs
Thomas Parslow (PatRat)
tom at almostobsolete.net
Sat Mar 9 06:29:43 CST 2002
> On Mon, Mar 04, 2002 at 06:07:01PM +1100, Robert Norris wrote:
>> > > 3. Hack JID rewriting stuff into the JSM, so that any to/from attributes
>> > > get rewritten to what I want them to be.
>> >
>> > It already does this, in the <pthcsock> element in the c2s config just
>> > add:
>> > <alias to="server.name"/>
>> >
>> > It's ugly, but it does all the magic to/from replacing so that things work
>> > just like you want :) The above is the "default" one, you can also have
>> > multiple <alias to="real.server">what.client.uses</alias> in there.
>>
>> That's interesting to know. It's pretty disgusting (as most hacks of
>> this type are), and it still has the problem that the client thinks its
>> JID is one thing while the rest of the network knows it as something
> Yes. This is the problem with <alias/> - it wasn't very well known early
> on in the stages of client development, so it wasn't implemented (AFAIK)
> as widely as one would have liked. (I am just as guilty - sjabber was
> written before I knew much about the full server config options).
> dj
If a client connects to a server through an address which is
different from the servers name and it has an <alias> set up for that
address is there any way for the client to determine the servers
actual name?
The solution I have in my client right now is to let the user enter
their full JID in the username box if it differs from username at server.
Thomas Parslow (PatRat)
E-Mail/Jabber: tom at almostobsolete.net
ICQ: 26359483
More information about the JDev
mailing list