check for None channel and display error
This commit is contained in:
parent
e646d0ee4c
commit
57bc6728af
|
@ -60,6 +60,10 @@ class Handler (SocketServer.BaseRequestHandler):
|
||||||
self.chain_port,
|
self.chain_port,
|
||||||
repr(e)))
|
repr(e)))
|
||||||
return
|
return
|
||||||
|
if chan is None:
|
||||||
|
verbose('Incoming request to %s:%d was rejected by the SSH server.' %
|
||||||
|
(self.chain_host, self.chain_port))
|
||||||
|
return
|
||||||
|
|
||||||
verbose('Connected! Tunnel open.')
|
verbose('Connected! Tunnel open.')
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue