update: redirect user to not found tunnel page
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 3m49s

This commit is contained in:
2025-09-08 10:18:47 +07:00
parent 0999196ee9
commit 9e794bf53f
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ func HandlerTLS(conn net.Conn) {
sshSession, ok := session.Clients[slug]
if !ok {
conn.Write([]byte("HTTP/1.1 301 Moved Permanently\r\n" +
fmt.Sprintf("Location: https://%s/tunnel-not-found?slug=%s\r\n", utils.Getenv("domain"), slug) +
fmt.Sprintf("Location: https://tunnl.live/tunnel-not-found?slug=%s\r\n", slug) +
"Content-Length: 0\r\n" +
"Connection: close\r\n" +
"\r\n"))