Checks whether proxy should be used according to nonProxyHosts settings of it, or we want to go directly to target host. If null proxy is passed in, this method
returns true -- since there is NO proxy, we should avoid to use it. Simple hostname pattern matching using "*" are supported, but only as prefixes.
hostname - the hostname
true if we have to ignore proxy use (obeying non-proxy hosts settings), false otherwise.