feat: close connection if no tunneling request is specified
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 7m18s

This commit is contained in:
2025-10-20 12:28:52 +00:00
parent 659b2b82ec
commit e02b7ed937
7 changed files with 82 additions and 66 deletions

View File

@ -1,11 +1,12 @@
package main
import (
"golang.org/x/crypto/ssh"
"log"
"os"
"tunnel_pls/server"
"tunnel_pls/utils"
"golang.org/x/crypto/ssh"
)
func main() {
@ -20,7 +21,7 @@ func main() {
log.SetOutput(os.Stdout)
log.SetFlags(log.LstdFlags | log.Lshortfile)
privateBytes, err := os.ReadFile(utils.Getenv("ssh_private_key"))
privateBytes, err := os.ReadFile(utils.Getenv("SSH_PRIVATE_KEY"))
if err != nil {
log.Fatalf("Failed to load private key : %s", err.Error())
}