Change condition to get environment to set the protocol
Merge pull request #14 from thelabtech/PR-26

Change condition to get environment to set the protocol