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 {
17
17
18
18
defaultConfig {
19
19
applicationId " com.vm.shadowsocks"
20
- minSdkVersion 14
20
+ minSdkVersion 15
21
21
targetSdkVersion 25
22
22
versionCode 1
23
23
versionName " 1.1"
Original file line number Diff line number Diff line change @@ -379,7 +379,10 @@ private ParcelFileDescriptor establishVPN() throws Exception {
379
379
String value = (String ) method .invoke (null , name );
380
380
if (value != null && !"" .equals (value ) && !servers .contains (value )) {
381
381
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
+ }
383
386
if (ProxyConfig .IS_DEBUG )
384
387
System .out .printf ("%s=%s\n " , name , value );
385
388
}
You can’t perform that action at this time.
0 commit comments