check: add checktolerance config for lha mode

This commit is contained in:
nadoo committed 2020-10-12 19:07:54 +08:00
1 parent a1ff92201c
commit 78e03d7fbf
10 files changed
+50 -36

No files matched your search

+1
View File
@@ -136,6 +136,7 @@ func (s *Trojan) Serve(c net.Conn) {
}
func (s *Trojan) serveFallback(c net.Conn, tgt string, headBuf *bytes.Buffer) {
// TODO: should we access fallback directly or via proxy?
dialer := s.proxy.NextDialer(tgt)
rc, err := dialer.Dial("tcp", tgt)
if err != nil {
+1
View File
@@ -92,6 +92,7 @@ func (s *VLess) Serve(c net.Conn) {
}
func (s *VLess) serveFallback(c net.Conn, tgt string, headBuf *bytes.Buffer) {
// TODO: should we access fallback directly or via proxy?
dialer := s.proxy.NextDialer(tgt)
rc, err := dialer.Dial("tcp", tgt)
if err != nil {