Add protocol to configuration

Load protocol from configuration instead of calculating it from tcp port