[stunnel-users] Some troubles with PROXY protocol

Alexey V. Drozdov anyquist at yandex.ru
Sat Apr 12 18:32:08 CEST 2014


Hi, Mike!

In spite of new changes, it's still work incorrect because of init_remote(c) connect to the address from root config section:

        protocol(c, PROTOCOL_PRE_CONNECT);
        init_remote(c);  <<<<<<<<<< destination address from root section
        protocol(c, PROTOCOL_PRE_SSL);
        init_ssl(c); <<<<<<<<<<< switch to target SNI config section only there
        protocol(c, PROTOCOL_POST_SSL); <<<<<<<<<<< send PROXY protocol to incorrect address

Context switch to target section parameters after init_ssl(c) only.


/Alexey V. Drozdov
e-mail: anyquist at yandex.ru


More information about the stunnel-users mailing list