mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-06-25 22:02:00 +00:00
added check for recorder cmdline flags
This commit is contained in:
parent
39d74c9762
commit
594e7393ca
@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"net"
|
"net"
|
||||||
|
"os"
|
||||||
"time"
|
"time"
|
||||||
"vncproxy/client"
|
"vncproxy/client"
|
||||||
"vncproxy/common"
|
"vncproxy/common"
|
||||||
@ -21,6 +22,19 @@ func main() {
|
|||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
if *targetVncPort == "" {
|
||||||
|
logger.Error("no target vnc server port defined")
|
||||||
|
flag.Usage()
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
if *targetVncPass == "" {
|
||||||
|
logger.Warn("no password defined, trying to connect with null authentication")
|
||||||
|
}
|
||||||
|
if *recordDir == "" {
|
||||||
|
logger.Warn("FBS recording is turned off")
|
||||||
|
}
|
||||||
|
|
||||||
//nc, err := net.Dial("tcp", "192.168.1.101:5903")
|
//nc, err := net.Dial("tcp", "192.168.1.101:5903")
|
||||||
nc, err := net.Dial("tcp", "localhost:"+*targetVncPort)
|
nc, err := net.Dial("tcp", "localhost:"+*targetVncPort)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user