✨ v0.9.21 WebSSH

This commit is contained in:
naiba committed 2021-08-18 11:56:54 +08:00
1 parent 48e7c64452
commit 2dcdbea874
13 files changed
+597 -99

No files matched your search

+2 -1
View File
@@ -5,6 +5,7 @@ import (
"html/template"
"net/http"
"strings"
"sync"
"time"
"code.cloudfoundry.org/bytefmt"
@@ -135,7 +136,7 @@ func ServeWeb(port uint) *http.Server {
func routers(r *gin.Engine) {
// 通用页面
cp := commonPage{r}
cp := commonPage{r: r, terminals: make(map[string]*terminalContext), terminalsLock: new(sync.Mutex)}
cp.serve()
// 游客页面
gp := guestPage{r}