mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
check: add checktolerance config for lha mode
This commit is contained in:
1 parent
a1ff92201c
commit
78e03d7fbf
10 files changed
+50
-36
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user