fix redirector to preserve remote host rather than bumping to localhost