add tproxy

This commit is contained in:
ginuerzh
2022-03-31 11:14:44 +08:00
parent 8564d711b8
commit 37fed3f372
9 changed files with 210 additions and 27 deletions

View File

@ -6,12 +6,15 @@ import (
type metadata struct {
sniffing bool
tproxy bool
}
func (h *redirectHandler) parseMetadata(md mdata.Metadata) (err error) {
const (
sniffing = "sniffing"
tproxy = "tproxy"
)
h.md.sniffing = mdata.GetBool(md, sniffing)
h.md.tproxy = mdata.GetBool(md, tproxy)
return
}