summaryrefslogtreecommitdiff
path: root/pkg/cfg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/cfg')
-rw-r--r--pkg/cfg/tls.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/cfg/tls.go b/pkg/cfg/tls.go
index 6414b25..6441df8 100644
--- a/pkg/cfg/tls.go
+++ b/pkg/cfg/tls.go
@@ -6,10 +6,10 @@ import (
"github.com/xlgmokha/x/pkg/x"
)
-func WithSelfSigned(cert, key string) cfg.Option {
+func WithSelfSigned(cert, key string) Option {
certificate := x.Must(tls.LoadX509KeyPair(cert, key))
- return func(config *cfg.Config) {
+ return func(config *Config) {
config.TLS = &tls.Config{
MinVersion: tls.VersionTLS13,
Certificates: []tls.Certificate{certificate},