Add the same parse_port logic to proxy.py too
Merge pull request #14 from felixonmars/custom-port-support

Add the same parse_port logic to proxy.py too