inject endpoint instead of host and port to avoid heartdleed problems and to port client to accept https connections