@@ -136,15 +136,15 @@ open class IPNService : VpnService(), libtailscale.IPNService {
136136 try {
137137 b.addAllowedApplication(name)
138138 } catch (e: PackageManager .NameNotFoundException ) {
139- TSLog .d (TAG , " Failed to add allowed application: $e " )
139+ TSLog .e (TAG , " Failed to add allowed application: $e " )
140140 }
141141 }
142142
143143 private fun disallowApp (b : Builder , name : String ) {
144144 try {
145145 b.addDisallowedApplication(name)
146146 } catch (e: PackageManager .NameNotFoundException ) {
147- TSLog .d (TAG , " Failed to add disallowed application: $e " )
147+ TSLog .e (TAG , " Failed to add disallowed application: $e " )
148148 }
149149 }
150150
@@ -179,7 +179,7 @@ open class IPNService : VpnService(), libtailscale.IPNService {
179179 allowPackages = false
180180 TSLog .d(TAG , " Excluded application packages were set via MDM: $mdmDisallowed " )
181181 } 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
183183 // via Tailscale
184184 packagesList = UninitializedApp .get().selectedPackageNames()
185185 allowPackages = UninitializedApp .get().allowSelectedPackages()
@@ -189,7 +189,7 @@ open class IPNService : VpnService(), libtailscale.IPNService {
189189 if (allowPackages) {
190190 // There always needs to be at least one allowed application for the VPN service to filter the
191191 // traffic so add our own application by default to fulfill that requirement
192- packagesList + = " com.tailscale.ipn "
192+ packagesList + = BuildConfig . APPLICATION_ID
193193
194194 for (packageName in packagesList) {
195195 TSLog .d(TAG , " Including app: $packageName " )
0 commit comments