[tor-commits] [torsocks/master] Refactor the connect() code flow for clarity