We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca04767 commit 7bfbf59Copy full SHA for 7bfbf59
pkg/tcpserver/tcpserver.go
@@ -6,6 +6,7 @@ import (
6
"net"
7
"time"
8
9
+ "github.com/projectdiscovery/simplehttpserver/pkg/sslcert"
10
"gopkg.in/yaml.v2"
11
)
12
@@ -71,7 +72,7 @@ func (t *TCPServer) ListenAndServeTLS() error {
71
72
tlsConfig = &tls.Config{Certificates: []tls.Certificate{cert}}
73
} else {
74
tlsOptions := sslcert.DefaultOptions
- tlsOptions.Host = opts.Domain
75
+ tlsOptions.Host = t.options.Domain
76
cfg, err := sslcert.NewTLSConfig(tlsOptions)
77
if err != nil {
78
return err
0 commit comments