Message-ID: From: "jgangemi (@jgangemi)" To: "pgjdbc/pgjdbc" Date: Thu, 05 Oct 2017 16:51:49 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #975: Version from 42.1.0 can't connect to 127.0.0.1 with System SOCKS proxy In-Reply-To: References: List-Id: X-GitHub-Author-Login: jgangemi X-GitHub-Comment-Id: 334525601 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 975 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/975#issuecomment-334525601 Content-Type: text/plain; charset=utf-8 i get what's trying to be accomplished here but i'm not sure how to easily fix it. i believe part of the problem is that the `socksNonProxyHosts` system property is not being taken into account. the code just checks to see if a proxy is in use and if so, immediately defer. maybe the lookup could be deferred and if fails to resolve via the proxy it could be tried locally or vice versa. one way i've worked around this is to just create entries in my local `/etc/hosts` files for the remote systems that need to be resolved. i realize that won't work for everyone but might help some.