Made WsockHandler more robust
This commit is contained in:
+2
-1
@@ -114,7 +114,8 @@ def run_ssh_server(port=2200, running=True):
|
||||
|
||||
chan.send('\r\n\r\nWelcome!\r\n\r\n')
|
||||
if username == 'bar':
|
||||
print(chan.recv(1024))
|
||||
msg = chan.recv(1024)
|
||||
chan.send(msg)
|
||||
|
||||
chan.close()
|
||||
t.close()
|
||||
|
||||
Reference in New Issue
Block a user