Fix Ctrl-C handling

This commit is contained in:
2026-05-26 18:39:45 +03:00
parent 12f4af12e6
commit 3ece07e11d
11 changed files with 33 additions and 10 deletions

View File

@@ -3,7 +3,6 @@ package deconnector
import (
"bufio"
"fmt"
"log"
"net"
"net/http"
"net/url"
@@ -16,7 +15,9 @@ func (d *Deconnector) handleDeconnect(clientConn net.Conn, connectReq *http.Requ
// Read the real HTTP request the client sends through the tunnel
innerReq, err := http.ReadRequest(bufio.NewReader(clientConn))
if err != nil {
log.Printf("failed to read inner request after CONNECT:80: %v", err)
d.app.Logger().WithError(err).
Error("Failed to read inner request after CONNECT:80")
return
}