Fix crash caused by hostname in socksParentProxy