We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4a432b + 00a28f6 commit 123abe0Copy full SHA for 123abe0
cli/ocspserve/ocspserve.go
@@ -3,8 +3,9 @@ package ocspserve
3
4
import (
5
"errors"
6
- "fmt"
+ "net"
7
"net/http"
8
+ "strconv"
9
10
"github.com/cloudflare/cfssl/cli"
11
"github.com/cloudflare/cfssl/log"
@@ -53,7 +54,7 @@ func ocspServerMain(args []string, c cli.Config) error {
53
54
log.Info("Registering OCSP responder handler")
55
http.Handle(c.Path, ocsp.NewResponder(src, nil))
56
- addr := fmt.Sprintf("%s:%d", c.Address, c.Port)
57
+ addr := net.JoinHostPort(c.Address, strconv.Itoa(c.Port))
58
log.Info("Now listening on ", addr)
59
return http.ListenAndServe(addr, nil)
60
}
0 commit comments