[tor-commits] [torsocks/master] Add localhost resolve utils function