initial commit

This commit is contained in:
ginuerzh
2022-03-16 19:40:29 +08:00
commit 7db81fcfeb
109 changed files with 8782 additions and 0 deletions

21
dialer/tls/metadata.go Normal file
View File

@ -0,0 +1,21 @@
package tls
import (
"time"
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
handshakeTimeout time.Duration
}
func (d *tlsDialer) parseMetadata(md mdata.Metadata) (err error) {
const (
handshakeTimeout = "handshakeTimeout"
)
d.md.handshakeTimeout = mdata.GetDuration(md, handshakeTimeout)
return
}