Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add back code to watch changes to our defaults domain #214

Merged
merged 3 commits into from
Jan 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Source/common/SNTConfigurator.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
}

@interface SNTConfigurator ()
@property(readonly, nonatomic) NSUserDefaults *defaults;

/// Keys and expected value types.
@property(readonly, nonatomic) NSDictionary *syncServerKeyTypes;
@property(readonly, nonatomic) NSDictionary *forcedConfigKeyTypes;
Expand Down Expand Up @@ -296,6 +298,9 @@ - (instancetype)initWithSyncStateFile:(NSString *)syncStateFilePath
_syncStateFilePath = syncStateFilePath;
_syncStateAccessAuthorizerBlock = syncStateAccessAuthorizer;

_defaults = [NSUserDefaults standardUserDefaults];
[_defaults addSuiteNamed:@"com.northpolesec.santa"];

_configState = [self readForcedConfig];
[self cacheStaticRules];

Expand Down
Loading