Refine the part patch #37942 mapping 'localhost' to gSystem->HostName(): this is only needed for master-to-worker. Doing it for client-to-master breaks the use of SSH tunnels.
Changed paths: