Skip to content

Commit f7bd6e3

Browse files
Set installCerts when the certificate is installed from previous versions of the Agent regardless of the default browser
1 parent f69980a commit f7bd6e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func loop() {
223223

224224
// if the default browser is Safari, prompt the user to install HTTPS certificates
225225
// and eventually install them
226-
if runtime.GOOS == "darwin" && cert.GetDefaultBrowserName() == "Safari" {
226+
if runtime.GOOS == "darwin" {
227227
if exist, err := installCertsKeyExists(configPath.String()); err != nil {
228228
log.Panicf("config.ini cannot be parsed: %s", err)
229229
} else if !exist {
@@ -232,7 +232,7 @@ func loop() {
232232
if err != nil {
233233
log.Panicf("config.ini cannot be parsed: %s", err)
234234
}
235-
} else if cert.PromptInstallCertsSafari() {
235+
} else if cert.GetDefaultBrowserName() == "Safari" && cert.PromptInstallCertsSafari() {
236236
err = config.SetInstallCertsIni(configPath.String(), "true")
237237
if err != nil {
238238
log.Panicf("config.ini cannot be parsed: %s", err)

0 commit comments

Comments
 (0)