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