File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ - (void)connect:(JS::NativeOpenvpn::ConnectionParams &)params resolve:(nonnull R
49
49
50
50
self.providerManager .localizedDescription = @" F1VPNs OpenVPN" ;
51
51
[self .providerManager setEnabled: YES ];
52
- [self .providerManager setOnDemandEnabled: NO ];
52
+ [self .providerManager setOnDemandEnabled: YES ];
53
53
[self .providerManager setProtocolConfiguration: tunel];
54
54
55
55
[self .providerManager saveToPreferencesWithCompletionHandler: ^(NSError *error) {
@@ -125,7 +125,7 @@ - (void)prepare:(nonnull RCTPromiseResolveBlock)resolve reject:(nonnull RCTPromi
125
125
126
126
NSNotificationCenter *center = [NSNotificationCenter defaultCenter ];
127
127
self.vpnStateObserver = [center addObserverForName: NEVPNStatusDidChangeNotification
128
- object: self .providerManager.connection
128
+ object: nil
129
129
queue: nil
130
130
usingBlock: ^(NSNotification *notification) {
131
131
NEVPNConnection *nevpnConnection = (NEVPNConnection *)notification.object ;
You can’t perform that action at this time.
0 commit comments