Isssue #17 - fix to use correct protocol based on port
Merge pull request #18 from cfaddict/master

Issue #17