File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/java/com/vm/shadowsocks/core Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ android {
1717
1818 defaultConfig {
1919 applicationId " com.vm.shadowsocks"
20- minSdkVersion 14
20+ minSdkVersion 15
2121 targetSdkVersion 25
2222 versionCode 1
2323 versionName " 1.1"
Original file line number Diff line number Diff line change @@ -379,7 +379,10 @@ private ParcelFileDescriptor establishVPN() throws Exception {
379379 String value = (String ) method .invoke (null , name );
380380 if (value != null && !"" .equals (value ) && !servers .contains (value )) {
381381 servers .add (value );
382- builder .addRoute (value , 32 );
382+ if (value .replaceAll ("\\ d" , "" ).length () == 3 ){//防止IPv6地址导致问题
383+ System .out .println (value );
384+ builder .addRoute (value , 32 );
385+ }
383386 if (ProxyConfig .IS_DEBUG )
384387 System .out .printf ("%s=%s\n " , name , value );
385388 }
You can’t perform that action at this time.
0 commit comments