mirror of
https://github.com/go-gost/gost.git
synced 2026-10-08 12:05:46 +00:00
add router handler option
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
)
|
||||
|
||||
type metadata struct {
|
||||
retryCount int
|
||||
authenticator auth.Authenticator
|
||||
probeResist *probeResist
|
||||
sni bool
|
||||
@@ -23,7 +22,6 @@ func (h *httpHandler) parseMetadata(md mdata.Metadata) error {
|
||||
users = "users"
|
||||
probeResistKey = "probeResist"
|
||||
knock = "knock"
|
||||
retryCount = "retry"
|
||||
sni = "sni"
|
||||
enableUDP = "udp"
|
||||
)
|
||||
@@ -58,7 +56,6 @@ func (h *httpHandler) parseMetadata(md mdata.Metadata) error {
|
||||
}
|
||||
}
|
||||
}
|
||||
h.md.retryCount = mdata.GetInt(md, retryCount)
|
||||
h.md.sni = mdata.GetBool(md, sni)
|
||||
h.md.enableUDP = mdata.GetBool(md, enableUDP)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user