移除反向代理代码

This commit is contained in:
lwch
2021-11-18 23:17:44 +08:00
parent 4ce221eeae
commit d30b27367f
59 changed files with 93 additions and 439 deletions

View File

@@ -0,0 +1,20 @@
package vnc
import (
"fmt"
"natpass/code/client/rule/vnc/worker"
"github.com/gorilla/websocket"
"github.com/lwch/runtime"
)
// RunWorker run vnc worker
func RunWorker(port uint16, cursor bool) {
worker := worker.NewWorker(cursor)
if worker == nil {
panic("build context failed")
}
conn, _, err := websocket.DefaultDialer.Dial(fmt.Sprintf("ws://127.0.0.1:%d", port), nil)
runtime.Assert(err)
worker.Do(conn)
}