Feature: MITM rewrite
This commit is contained in:
@ -23,6 +23,7 @@ const (
|
||||
REDIR
|
||||
TPROXY
|
||||
TUN
|
||||
MITM
|
||||
)
|
||||
|
||||
type NetWork int
|
||||
@ -58,6 +59,8 @@ func (t Type) String() string {
|
||||
return "TProxy"
|
||||
case TUN:
|
||||
return "Tun"
|
||||
case MITM:
|
||||
return "Mitm"
|
||||
default:
|
||||
return "Unknown"
|
||||
}
|
||||
@ -80,6 +83,7 @@ type Metadata struct {
|
||||
DNSMode DNSMode `json:"dnsMode"`
|
||||
Process string `json:"process"`
|
||||
ProcessPath string `json:"processPath"`
|
||||
UserAgent string `json:"userAgent"`
|
||||
}
|
||||
|
||||
func (m *Metadata) RemoteAddress() string {
|
||||
|
Reference in New Issue
Block a user