FAQ | This is a LIVE service | Changelog

Commit c2d6a8d7 authored by Jon Marshall's avatar Jon Marshall
Browse files

Bad idea as it never ends

parent f25e137e
......@@ -567,12 +567,6 @@ class ncListen(Thread):
try:
# Set it up and send back the port that got used
ncin, ncout, ncerr = self.sshclient.exec_command(nc_cmd)
# Not fussed if this blocks, we're in a new thread
error = ncerr.read().decode()
if error:
self.log.error('Error running netcat command')
self.log.debug(error)
raise ConnectionError
except paramiko.SSHException as exception:
self.log.debug(exception)
self.log.error('Netcat command could not start')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment