diff --git a/recorder/cmd/main.go b/recorder/cmd/main.go index 6539f3d..1d1ab85 100644 --- a/recorder/cmd/main.go +++ b/recorder/cmd/main.go @@ -3,6 +3,7 @@ package main import ( "flag" "net" + "os" "time" "vncproxy/client" "vncproxy/common" @@ -21,6 +22,19 @@ func main() { 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", "localhost:"+*targetVncPort)