Skip to content

Commit

Permalink
chore: remove certificate request delay
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jan 21, 2025
1 parent 669792f commit b1fe196
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/http/acme/acme_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"net"
"net/http"
"strings"
"time"

"github.com/go-acme/lego/v4/challenge/tlsalpn01"
"github.com/mdlayher/vsock"
Expand Down Expand Up @@ -80,9 +79,7 @@ func (s *ProviderServer) Present(domain, token, keyAuth string) error {
log.Println(err)
}
}()
log.Printf("TLS listener started on %d. Waiting for host-side vsock proxy initialization...", s.vsockListenPort)
time.Sleep(5 * time.Second)
log.Println("Done waiting for vsock proxy initialization. Proceeding with certificate request.")
log.Printf("TLS listener started on %d. Requesting certificate", s.vsockListenPort)
return nil
}

Expand Down

0 comments on commit b1fe196

Please sign in to comment.