Skip to content

Commit b46a9fe

Browse files
committed
Fix IPv6 Route.
1 parent 5369e14 commit b46a9fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/com/vm/shadowsocks/core/LocalVpnService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,9 @@ private ParcelFileDescriptor establishVPN() throws Exception {
380380
if (value != null && !"".equals(value) && !servers.contains(value)) {
381381
servers.add(value);
382382
if (value.replaceAll("\\d", "").length() == 3){//防止IPv6地址导致问题
383-
System.out.println(value);
384383
builder.addRoute(value, 32);
384+
} else {
385+
builder.addRoute(value, 128);
385386
}
386387
if (ProxyConfig.IS_DEBUG)
387388
System.out.printf("%s=%s\n", name, value);

0 commit comments

Comments
 (0)