< prev index next >

src/java.base/share/classes/java/net/SocksSocketImpl.java

Print this page

        

*** 49,59 **** private InetSocketAddress external_address; private boolean useV4 = false; private Socket cmdsock = null; private InputStream cmdIn = null; private OutputStream cmdOut = null; ! /* true if the Proxy has been set programatically */ private boolean applicationSetProxy; /* false */ SocksSocketImpl() { // Nothing needed --- 49,59 ---- private InetSocketAddress external_address; private boolean useV4 = false; private Socket cmdsock = null; private InputStream cmdIn = null; private OutputStream cmdOut = null; ! /* true if the Proxy has been set programmatically */ private boolean applicationSetProxy; /* false */ SocksSocketImpl() { // Nothing needed
*** 143,153 **** } return received; } /** ! * Provides the authentication machanism required by the proxy. */ private boolean authenticate(byte method, InputStream in, BufferedOutputStream out) throws IOException { return authenticate(method, in, out, 0L); } --- 143,153 ---- } return received; } /** ! * Provides the authentication mechanism required by the proxy. */ private boolean authenticate(byte method, InputStream in, BufferedOutputStream out) throws IOException { return authenticate(method, in, out, 0L); }
*** 156,166 **** BufferedOutputStream out, long deadlineMillis) throws IOException { // No Authentication required. We're done then! if (method == NO_AUTH) return true; ! /** * User/Password authentication. Try, in that order : * - The application provided Authenticator, if any * - the user.name & no password (backward compatibility behavior). */ if (method == USER_PASSW) { --- 156,166 ---- BufferedOutputStream out, long deadlineMillis) throws IOException { // No Authentication required. We're done then! if (method == NO_AUTH) return true; ! /* * User/Password authentication. Try, in that order : * - The application provided Authenticator, if any * - the user.name & no password (backward compatibility behavior). */ if (method == USER_PASSW) {
*** 375,385 **** return; } URI uri; // Use getHostString() to avoid reverse lookups String host = epoint.getHostString(); ! // IPv6 litteral? if (epoint.getAddress() instanceof Inet6Address && (!host.startsWith("[")) && (host.indexOf(':') >= 0)) { host = "[" + host + "]"; } try { --- 375,385 ---- return; } URI uri; // Use getHostString() to avoid reverse lookups String host = epoint.getHostString(); ! // IPv6 literal? if (epoint.getAddress() instanceof Inet6Address && (!host.startsWith("[")) && (host.indexOf(':') >= 0)) { host = "[" + host + "]"; } try {
*** 690,700 **** return; } URI uri; // Use getHostString() to avoid reverse lookups String host = saddr.getHostString(); ! // IPv6 litteral? if (saddr.getAddress() instanceof Inet6Address && (!host.startsWith("[")) && (host.indexOf(':') >= 0)) { host = "[" + host + "]"; } try { --- 690,700 ---- return; } URI uri; // Use getHostString() to avoid reverse lookups String host = saddr.getHostString(); ! // IPv6 literal? if (saddr.getAddress() instanceof Inet6Address && (!host.startsWith("[")) && (host.indexOf(':') >= 0)) { host = "[" + host + "]"; } try {
< prev index next >