-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverLAN.go
44 lines (38 loc) · 1.1 KB
/
serverLAN.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package main
import (
"strconv"
"github.com/xlab/closer"
)
func serverLAN(args ...string) {
var (
port string
diff bool
)
defer closer.Close()
closer.Bind(cleanupS)
ltf.Println(args)
li.Printf("\"%s\" -host\n", args[0])
if len(args) > 1 {
tcp = abs(args[1])
if tcp == ":" {
tcp = ""
}
}
tcp, port, diff = hp(tcp, strconv.Itoa(portViewer))
li.Println("host", tcp)
li.Println("On the other side was launched - на другой стороне был запушен")
p, er := strconv.Atoi(port)
if !diff || er != nil {
p = CportViewer
}
li.Printf("`ngrokVNC -%d [password]`\n", p-CportViewer)
li.Println("On the other side the VNC viewer is waiting for the VNC server to be connected via LAN - на другой стороне наблюдатель VNC ожидает подключения VNC экрана через LAN")
li.Println("The VNC server connects to the waiting VNC viewer via LAN - экран VNC подключается к ожидающему VNC наблюдателю через LAN")
ll()
err = serv()
if err != nil {
err = srcError(err)
return
}
watch(false)
}