socket: Fix a bug in TCPClientSocket

Needed by transparent proxying.
This commit is contained in:
klzgrad 2019-06-23 05:18:50 +08:00
parent fe81f1c600
commit 5f618f34e2

View File

@ -149,7 +149,7 @@ TCPClientSocket::TCPClientSocket(
: socket_(std::move(socket)),
bind_address_(std::move(bind_address)),
addresses_(addresses),
current_address_index_(-1),
current_address_index_(current_address_index),
next_connect_state_(CONNECT_STATE_NONE),
previously_disconnected_(false),
total_received_bytes_(0),