update: notify user when accessing an unknown tunnel address

This commit is contained in:
2025-02-08 18:34:45 +07:00
parent af6c6ba8a6
commit 58f15d5a67
4 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,7 @@ func handleRequestTLS(w http.ResponseWriter, r *http.Request) {
sshSession, ok := session.Clients[slug]
if !ok {
fmt.Println("Error finding ssh session: ", slug)
http.Error(w, "No tunnel found on this address", http.StatusNotFound)
return
}