File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
app/src/main/java/com/vm/shadowsocks Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -393,10 +393,12 @@ private ParcelFileDescriptor establishVPN() throws Exception {
393393 writeLog ("Proxy All Apps" );
394394 }
395395 for (AppInfo app : AppProxyManager .Instance .proxyAppInfo ){
396+ builder .addAllowedApplication ("com.vm.shadowsocks" );//需要把自己加入代理,不然会无法进行网络连接
396397 try {
397398 builder .addAllowedApplication (app .getPkgName ());
398399 writeLog ("Proxy App: " + app .getAppLabel ());
399400 } catch (Exception e ){
401+ e .printStackTrace ();
400402 writeLog ("Proxy App Fail: " + app .getAppLabel ());
401403 }
402404 }
Original file line number Diff line number Diff line change @@ -123,7 +123,8 @@ public void queryAppInfo() {
123123 appInfo .setAppLabel (appLabel );
124124 appInfo .setPkgName (pkgName );
125125 appInfo .setAppIcon (icon );
126- AppProxyManager .Instance .mlistAppInfo .add (appInfo );
126+ if (!appInfo .getPkgName ().equals ("com.vm.shadowsocks" ))//App本身会强制加入代理列表
127+ AppProxyManager .Instance .mlistAppInfo .add (appInfo );
127128 }
128129 }
129130 }
You can’t perform that action at this time.
0 commit comments