Skip to content

Commit 9282372

Browse files
committed
Remove setSession from VPNService
1 parent 7a8d1a5 commit 9282372

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app-tracking-protection/vpn-impl/src/main/java/com/duckduckgo/mobile/android/vpn/service/TrackerBlockingVpnService.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ class TrackerBlockingVpnService : VpnService(), CoroutineScope by MainScope(), V
449449
// TODO should we protect all comms with our controller BE? other VPNs do that
450450
safelyAddDisallowedApps(listOf(this@TrackerBlockingVpnService.packageName))
451451
setBlocking(true)
452-
setSession(DDG_VPN_SESSION)
453452
setMtu(1280)
454453
try {
455454
prepare(this@TrackerBlockingVpnService)
@@ -530,9 +529,6 @@ class TrackerBlockingVpnService : VpnService(), CoroutineScope by MainScope(), V
530529
}
531530

532531
setBlocking(true)
533-
// optional in docs but apparently some OEMs may expect to have a session
534-
setSession(DDG_VPN_SESSION)
535-
536532
// Cap the max MTU value to avoid backpressure issues in the socket
537533
// This is effectively capping the max segment size too
538534
setMtu(tunnelConfig.mtu)

0 commit comments

Comments
 (0)