add http.nonProxyHosts
This commit is contained in:
parent
b778267c70
commit
0671d41bb4
|
@ -36,6 +36,7 @@ import org.apache.cordova.PluginManager;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Locale;
|
||||
import java.util.Properties;
|
||||
|
||||
import io.syng.activity.BaseActivity;
|
||||
import io.syng.app.SyngApplication;
|
||||
|
@ -76,6 +77,9 @@ public class WebViewFragment extends Fragment implements View.OnTouchListener, G
|
|||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
url = getArguments() != null ? getArguments().getString("url") : null;
|
||||
Properties properties = System.getProperties();
|
||||
properties.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
|
||||
properties.setProperty("https.nonProxyHosts", "localhost|127.0.0.1");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue