equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
96 new PrivilegedAction<Boolean>() { |
96 new PrivilegedAction<Boolean>() { |
97 public Boolean run() { |
97 public Boolean run() { |
98 return NetProperties.getBoolean(key); |
98 return NetProperties.getBoolean(key); |
99 }}); |
99 }}); |
100 if (b != null && b.booleanValue()) { |
100 if (b != null && b.booleanValue()) { |
101 java.security.AccessController.doPrivileged( |
101 jdk.internal.loader.BootLoader.loadLibrary("net"); |
102 new java.security.PrivilegedAction<Void>() { |
|
103 public Void run() { |
|
104 System.loadLibrary("net"); |
|
105 return null; |
|
106 } |
|
107 }); |
|
108 hasSystemProxies = init(); |
102 hasSystemProxies = init(); |
109 } |
103 } |
110 } |
104 } |
111 |
105 |
112 public static int socksProxyVersion() { |
106 public static int socksProxyVersion() { |