fix: conn reader stuck when header have body
Some checks failed
Docker Build and Push / build-and-push (push) Has been cancelled

This commit is contained in:
2025-12-03 21:14:42 +07:00
parent a3eb08e7ae
commit 515bc30559
6 changed files with 314 additions and 74 deletions

View File

@ -1,14 +1,20 @@
package main
import (
"golang.org/x/crypto/ssh"
"log"
"net/http"
_ "net/http/pprof"
"os"
"tunnel_pls/server"
"tunnel_pls/utils"
"golang.org/x/crypto/ssh"
)
func main() {
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()
sshConfig := &ssh.ServerConfig{
NoClientAuth: true,
ServerVersion: "SSH-2.0-TunnlPls-1.0",