Skip to content
Open
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
4 changes: 4 additions & 0 deletions bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package bootstrap

import (
"crypto/tls"
"encoding/json"
"flag"
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"runtime"
Expand Down Expand Up @@ -41,6 +43,8 @@ func Run(productName, productTitle, productVersion string) {
}
}
}

http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
userConfigDir, err := os.UserConfigDir()

userConfigDir = filepath.Join(userConfigDir, "Rocket Software")
Expand Down
5 changes: 0 additions & 5 deletions utils/download/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package download

import (
"bytes"
"crypto/tls"
"fmt"
"io"
"net/http"
Expand Down Expand Up @@ -100,7 +99,3 @@ func GetLastModifiedTime(url string) (time.Time, error) {
}
return lastModifiedTime, nil
}

func init() {
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
}