added config param 'tor_port'
(cherry picked from commit 9cb32fa88e9d7902a03d5633d22587b3c99f0d04)
typo fixed 'task_cfg.use_tor = ...'
(cherry picked from commit 47aac55f3047d31247af968b462f9467ff2648aa)