Open zohar-fzh opened 1 year ago
简易模式的输出是这样
zox@a:~/Documents/trojan$ ./trojan-go -client -remote xxx:443 -local 127.0.0.1:1080 -password xxx
[INFO] 2023/02/10 17:36:30 easy mode enabled, trojan-go will NOT use the config file
[INFO] 2023/02/10 17:36:30 generated config:
[INFO] 2023/02/10 17:36:30 {"run_type":"client","local_addr":"127.0.0.1","local_port":1080,"remote_addr":"fanzhanhao.tech","remote_port":443,"password":["trojan"]}
[INFO] 2023/02/10 17:36:30 adapter listening on tcp/udp: 127.0.0.1:1080
[WARN] 2023/02/10 17:36:30 tls sni is unspecified
[INFO] 2023/02/10 17:36:30 cert is unspecified, using default ca list
[ERROR] 2023/02/10 17:36:46 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
[INFO] 2023/02/10 17:36:46 connection to detectportal.firefox.com:80 closed sent: 0 B recv: 216 B
[ERROR] 2023/02/10 17:36:47 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
[INFO] 2023/02/10 17:36:47 connection to detectportal.firefox.com:80 closed sent: 0 B recv: 216 B
[ERROR] 2023/02/10 17:36:47 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
[INFO] 2023/02/10 17:36:47 connection to detectportal.firefox.com:80 closed sent: 0 B recv: 298 B
[ERROR] 2023/02/10 17:36:48 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
[INFO] 2023/02/10 17:36:48 connection to detectportal.firefox.com:80 closed sent: 0 B recv: 216 B
[ERROR] 2023/02/10 17:36:49 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
nhao.tech:443 -local 127.0.0.1:1080 -password trojan
[INFO] 2023/02/10 17:36:30 easy mode enabled, trojan-go will NOT use the config file
[INFO] 2023/02/10 17:36:30 generated config:
[INFO] 2023/02/10 17:36:30 {"run_type":"client","local_addr":"127.0.0.1","local_port":1080,"remote_addr":"fanzhanhao.tech","remote_port":443,"password":["trojan"]}
[INFO] 2023/02/10 17:36:30 adapter listening on tcp/udp: 127.0.0.1:1080
[WARN] 2023/02/10 17:36:30 tls sni is unspecified
[INFO] 2023/02/10 17:36:30 cert is unspecified, using default ca list
[ERROR] 2023/02/10 17:36:46 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
[INFO] 2023/02/10 17:36:46 connection to detectportal.firefox.com:80 closed sent: 0 B recv: 216 B
[ERROR] 2023/02/10 17:36:47 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
[INFO] 2023/02/10 17:36:47 connection to detectportal.firefox.com:80 closed sent: 0 B recv: 216 B
[ERROR] 2023/02/10 17:36:47 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
[INFO] 2023/02/10 17:36:47 connection to detectportal.firefox.com:80 closed sent: 0 B recv: 298 B
[ERROR] 2023/02/10 17:36:48 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
[INFO] 2023/02/10 17:36:48 connection to detectportal.firefox.com:80 closed sent: 0 B recv: 216 B
[ERROR] 2023/02/10 17:36:49 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:80 io: read/write on closed pipe
问题出在多路复用mux功能、mux关闭后报错消失,设为ture后这个报错就又出现了。
我的配置mux 是关闭的 但是为什么还是报错呢
简单描述这个 Bug
如何复现这个 Bug