Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGedd committed Oct 24, 2024
1 parent 81ab27f commit 6d6f557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pkg/api/airgap.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/go-chi/chi/v5"
)

// serveAirgap starts a server assuming airgap and uses self-signed certificates
func serveAirgap(r *chi.Mux) error {
err := generateCerts()
if err != nil {
Expand Down Expand Up @@ -63,7 +64,7 @@ func isAirgapped(timeout time.Duration) bool {
return !(googleErr == nil && cloudflareErr == nil)
}

// generateCerts creates self-signed certificates for local development
// generateCerts creates self-signed certificates for running locally in the airgap
func generateCerts() error {
// Generate private key
privateKey, err := rsa.GenerateKey(rand.Reader, 2048)
Expand Down

0 comments on commit 6d6f557

Please sign in to comment.