fix: proxy load

This commit is contained in:
xtaodada 2022-08-19 12:02:26 +08:00
parent 97024d9ce3
commit 066bc64497
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -427,6 +427,8 @@ SharedPreferences mainPreferences;
Utilities.stageQueue.postRunnable(() -> { Utilities.stageQueue.postRunnable(() -> {
SharedConfig.loadProxyList();
if (SharedConfig.proxyEnabled && SharedConfig.currentProxy != null) { if (SharedConfig.proxyEnabled && SharedConfig.currentProxy != null) {
if (SharedConfig.currentProxy instanceof SharedConfig.ExternalSocks5Proxy) { if (SharedConfig.currentProxy instanceof SharedConfig.ExternalSocks5Proxy) {
((SharedConfig.ExternalSocks5Proxy) SharedConfig.currentProxy).start(); ((SharedConfig.ExternalSocks5Proxy) SharedConfig.currentProxy).start();