improve ss
This commit is contained in:
26
pkg/handler/http/metadata.go
Normal file
26
pkg/handler/http/metadata.go
Normal file
@ -0,0 +1,26 @@
|
||||
package http
|
||||
|
||||
import "github.com/go-gost/gost/pkg/auth"
|
||||
|
||||
const (
|
||||
addrKey = "addr"
|
||||
proxyAgentKey = "proxyAgent"
|
||||
authsKey = "auths"
|
||||
probeResistKey = "probeResist"
|
||||
knockKey = "knock"
|
||||
retryCount = "retry"
|
||||
)
|
||||
|
||||
type metadata struct {
|
||||
addr string
|
||||
authenticator auth.Authenticator
|
||||
proxyAgent string
|
||||
retryCount int
|
||||
probeResist *probeResist
|
||||
}
|
||||
|
||||
type probeResist struct {
|
||||
Type string
|
||||
Value string
|
||||
Knock string
|
||||
}
|
Reference in New Issue
Block a user