+3
-2
lines changedFilter options
+3
-2
lines changed Original file line number Diff line number Diff line change
@@ -3,8 +3,9 @@ package ocspserve
3
3
4
4
import (
5
5
"errors"
6
-
"fmt"
6
+
"net"
7
7
"net/http"
8
+
"strconv"
8
9
9
10
"github.com/cloudflare/cfssl/cli"
10
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")
54
55
http.Handle(c.Path, ocsp.NewResponder(src, nil))
55
56
56
-
addr := fmt.Sprintf("%s:%d", c.Address, c.Port)
57
+
addr := net.JoinHostPort(c.Address, strconv.Itoa(c.Port))
57
58
log.Info("Now listening on ", addr)
58
59
return http.ListenAndServe(addr, nil)
59
60
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4