fix transparent proxy

This commit is contained in:
ginuerzh
2022-03-29 23:02:32 +08:00
parent 6a6367b8d1
commit 303f46f843
20 changed files with 493 additions and 68 deletions

View File

@ -0,0 +1,17 @@
package redirect
import (
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
sniffing bool
}
func (h *redirectHandler) parseMetadata(md mdata.Metadata) (err error) {
const (
sniffing = "sniffing"
)
h.md.sniffing = mdata.GetBool(md, sniffing)
return
}