`.search` is not a good idea here, because it will convert its argument to a regular expression (so e.g. if `remote.hostname` is `foo.bar.com`, and `noproxy` contains `fooxbarxcom.com`, it will match). `indexOf` is better.