Paste number 56356: socks5 no dns

Index of paste annotations: 1

Paste number 56356: socks5 no dns
Pasted by: hannes
When:1 year, 4 months ago
Share:Tweet this! | http://paste.lisp.org/+17HG
Channel:None
Paste contents:
Raw Source | XML | Display As
Index: iris/xmpp-core/connector.cpp
===================================================================
--- iris/xmpp-core/connector.cpp        (revision 1060)
+++ iris/xmpp-core/connector.cpp        (working copy)
@@ -362,6 +362,17 @@
                }
                do_connect();
        }
+       else if (d->proxy.type() == Proxy::Socks) {
+               if(!d->opt_host.isEmpty()) {
+                       d->host = d->opt_host;
+                       d->port = d->opt_port;
+               }
+               else {
+                       d->host = server;
+                       d->port = 5222;
+               }
+               do_connect();
+       }
        else {
                if(!d->opt_host.isEmpty()) {
                        d->host = d->opt_host;
@@ -572,6 +583,9 @@
 #ifdef XMPP_DEBUG
        printf("srv_done1\n");
 #endif
+       if (d->proxy.type() == Proxy::Socks)
+         return;
+
        d->servers = d->srv.servers();
        if(d->servers.isEmpty()) {
                srvResult(false);

Annotations for this paste:

Annotation number 1: contact data
Pasted by: hannes
When:1 year, 4 months ago
Share:Tweet this! | http://paste.lisp.org/+17HG#1
Paste contents:
Raw Source | Display As
hannes@jabber.berlin.ccc.de or mail to hannes at samehostname without jabber

Colorize as:
Show Line Numbers
Index of paste annotations: 1

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.