fix port of final url not used if proxy