@@ -136,15 +136,15 @@ open class IPNService : VpnService(), libtailscale.IPNService {
136
136
try {
137
137
b.addAllowedApplication(name)
138
138
} catch (e: PackageManager .NameNotFoundException ) {
139
- TSLog .d (TAG , " Failed to add allowed application: $e " )
139
+ TSLog .e (TAG , " Failed to add allowed application: $e " )
140
140
}
141
141
}
142
142
143
143
private fun disallowApp (b : Builder , name : String ) {
144
144
try {
145
145
b.addDisallowedApplication(name)
146
146
} catch (e: PackageManager .NameNotFoundException ) {
147
- TSLog .d (TAG , " Failed to add disallowed application: $e " )
147
+ TSLog .e (TAG , " Failed to add disallowed application: $e " )
148
148
}
149
149
}
150
150
@@ -179,7 +179,7 @@ open class IPNService : VpnService(), libtailscale.IPNService {
179
179
allowPackages = false
180
180
TSLog .d(TAG , " Excluded application packages were set via MDM: $mdmDisallowed " )
181
181
} else {
182
- // Otherwise, prevent user manually disallowed apps from getting their traffic + DNS routed
182
+ // Otherwise, prevent user manually disallowed apps from getting their traffic + DNS routed
183
183
// via Tailscale
184
184
packagesList = UninitializedApp .get().selectedPackageNames()
185
185
allowPackages = UninitializedApp .get().allowSelectedPackages()
@@ -189,7 +189,7 @@ open class IPNService : VpnService(), libtailscale.IPNService {
189
189
if (allowPackages) {
190
190
// There always needs to be at least one allowed application for the VPN service to filter the
191
191
// traffic so add our own application by default to fulfill that requirement
192
- packagesList + = " com.tailscale.ipn "
192
+ packagesList + = BuildConfig . APPLICATION_ID
193
193
194
194
for (packageName in packagesList) {
195
195
TSLog .d(TAG , " Including app: $packageName " )
0 commit comments