Modified so that the protocol is set in the host configuration value