Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public actor AllocationOnlyVmnetNetwork: Network {
]
)

if let suite = UserDefaults.init(suiteName: "com.apple.container.defaults") {
if let suite = UserDefaults.init(suiteName: UserDefaults.appSuiteName) {
// TODO: Make the suiteName a constant defined in ClientDefaults and use that.
// This will need some re-working of dependencies between NetworkService and Client
defaultSubnet = suite.string(forKey: "network.subnet") ?? defaultSubnet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public actor SandboxService {

let fqdn: String
if let hostname = config.hostname {
if let suite = UserDefaults.init(suiteName: "com.apple.container.defaults"),
if let suite = UserDefaults.init(suiteName: UserDefaults.appSuiteName),
let dnsDomain = suite.string(forKey: "dns.domain"),
!hostname.contains(".")
{
Expand Down