add tproxy
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user