Skip to content

Commit

Permalink
Merge pull request #1018 from Infomaniak/atlantis-fix
Browse files Browse the repository at this point in the history
fix: Avoid connecting to everyone if hostname is nil
  • Loading branch information
valentinperignon committed Oct 4, 2023
2 parents 0b35d9f + 5a50c32 commit dc32cb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MailCore/Utils/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ public enum Logging {

private static func initAtlantis() {
#if DEBUG
Atlantis.start(hostName: ProcessInfo.processInfo.environment["hostname"])
guard let hostname = ProcessInfo.processInfo.environment["hostname"],
!hostname.isEmpty else {
return
}
Atlantis.start(hostName: hostname)
#endif
}
}

0 comments on commit dc32cb0

Please sign in to comment.