Fix bug for some cameras running gst rtsp server

This commit is contained in:
Brendan LE GLAUNEC
2017-09-19 11:02:20 +02:00
committed by Brendan Le Glaunec
parent bf3a967fad
commit a2af1329d7
4 changed files with 32 additions and 5 deletions
+11 -1
View File
@@ -48,13 +48,23 @@ func RunNmap(targets, ports string, resultFilePath string, nmapSpeed int, enable
"nmap",
fmt.Sprintf("-T%d", nmapSpeed),
"-A",
targets,
"-p",
ports,
"-oX",
resultFilePath,
targets,
)
fmt.Println(
"nmap",
fmt.Sprintf("-T%d", nmapSpeed),
"-A",
"-p",
ports,
"-oX",
resultFilePath,
targets)
// Pipe stdout to be able to write the logs in realtime
stdout, err := cmd.StdoutPipe()
if err != nil {