fix: discard unused buffers in the ssh channel before disconnecting

This commit is contained in:
2025-12-05 22:26:38 +07:00
parent 990bccbff7
commit af951b8fa7
4 changed files with 23 additions and 31 deletions

View File

@ -14,3 +14,8 @@ const (
HTTP TunnelType = "HTTP"
TCP TunnelType = "TCP"
)
var BadGatewayResponse = []byte("HTTP/1.1 502 Bad Gateway\r\n" +
"Content-Length: 11\r\n" +
"Content-Type: text/plain\r\n\r\n" +
"Bad Gateway")