Only consider an option has proxy when both proxy host and port are set.
Merge pull request #30 from shasha-chen/master

Only consider an option having proxy when both proxy host and port are set.