Revert: "fix: proxy-groups filter logic"

This reverts commit 8a85c63b08.
This commit is contained in:
adlyq
2022-04-22 18:55:28 +08:00
parent 8a85c63b08
commit de4341c8cd
17 changed files with 2 additions and 65 deletions

View File

@ -27,6 +27,7 @@ type Trojan struct {
gunConfig *gun.Config
transport *http2.Transport
}
type TrojanOption struct {
BasicOption
Name string `proxy:"name"`
@ -44,10 +45,6 @@ type TrojanOption struct {
FlowShow bool `proxy:"flow-show,omitempty"`
}
func (t *Trojan) IsProxyGroup() bool {
return false
}
func (t *Trojan) plainStream(c net.Conn) (net.Conn, error) {
if t.option.Network == "ws" {
host, port, _ := net.SplitHostPort(t.addr)