0

我配置了 irssi 和 xmpp 插件:

    {                                                                             
    address = "talk.google.com";                                                
    chatnet = "Gtalk";                                                          

    autoconnect = "yes";                                                        
    port = "5223";                                                              
    #use_ssl = "yes";                                                           
    #ssl_verify = "yes";                                                        
    ssl_capath = "/etc/ssl/certs";                                              
  }   

Gtalk = { type = "XMPP"; nick = "neilhwatson@gmail.com"; };

返回此错误:

09:09 [Gtalk] -!- HTTP/1.1 301 Moved Permanently
09:09 [Gtalk] -!- Location: http://www.google.com/hangouts/
09:09 [Gtalk] -!- Content-Type: text/html
09:09 [Gtalk] -!- Content-Length: 178

是否有其他一些可以使用的主机或端口组合?

4

1 回答 1

1

使用DNS SRV

$ dig SRV _xmpp-client._tcp.gmail.com

;; ANSWER SECTION:
_xmpp-client._tcp.gmail.com. 337 IN     SRV     20 0 5222 alt2.xmpp.l.google.com.
_xmpp-client._tcp.gmail.com. 337 IN     SRV     20 0 5222 alt3.xmpp.l.google.com.
_xmpp-client._tcp.gmail.com. 337 IN     SRV     5 0 5222 xmpp.l.google.com.
_xmpp-client._tcp.gmail.com. 337 IN     SRV     20 0 5222 alt1.xmpp.l.google.com.
_xmpp-client._tcp.gmail.com. 337 IN     SRV     20 0 5222 alt4.xmpp.l.google.com.

您可以尝试使用xmpp.l.google.com. 当我告诉它域是“gmail.com”时,我的 XMPP 客户端(pidgin)似乎会自动执行此操作

于 2014-12-12T14:30:44.493 回答