@@ -41,6 +41,7 @@ public class SSRVPNService extends VpnService
41
41
{
42
42
private int VPN_MTU = 1500 ;
43
43
private String PRIVATE_VLAN = "27.27.27.%s" ;
44
+ private String PRIVATE_VLAN6 = "fdfe:dcba:9875::%s" ;
44
45
private ParcelFileDescriptor conn ;
45
46
46
47
private String session ;
@@ -217,7 +218,7 @@ private void startRunner()
217
218
}
218
219
//
219
220
startSSRDaemon ();
220
- if (globalProfile .dnsForward )
221
+ if (! globalProfile .dnsForward )
221
222
{
222
223
startDnsDaemon ();
223
224
startDnsTunnel ();
@@ -356,6 +357,7 @@ private void startDnsTunnel()
356
357
private void startDnsDaemon ()
357
358
{
358
359
String pdnsd ;
360
+ //ipv6 config
359
361
if (globalProfile .route .equals ("bypass_lan_list" ))
360
362
{
361
363
String reject = getResources ().getString (R .string .reject );
@@ -384,6 +386,9 @@ private int startVpn()
384
386
.addAddress (String .format (PRIVATE_VLAN , "1" ), 24 )
385
387
.addDnsServer ("8.8.8.8" );
386
388
389
+ //builder.addAddress(String.format(PRIVATE_VLAN6, "1"), 126);
390
+ //builder.addRoute("::", 0);
391
+
387
392
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP )
388
393
{
389
394
builder .allowFamily (OsConstants .AF_INET6 );
@@ -446,6 +451,8 @@ private int startVpn()
446
451
String .format (PRIVATE_VLAN , "2" ),
447
452
ssProfile .localPort , fd , VPN_MTU , Consts .baseDir );
448
453
454
+ //cmd += " --netif-ip6addr " + String.format(PRIVATE_VLAN6,"2");
455
+
449
456
if (globalProfile .dnsForward )
450
457
{
451
458
cmd += " --enable-udprelay" ;
0 commit comments