File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 4848# pheller@fw1>
4949#
5050
51- _user_re = [re .compile (r'[\r\n]login: $' )]
51+ _user_re = [re .compile (r'[\r\n](?:[\-\w+]+ )? login: $' )]
5252_password_re = [re .compile (r'[\r\n](Local )?[Pp]assword: ?$' )]
5353_mb = r'(?:\{master(?::\d+)?\}|\{backup(?::\d+)?\})'
5454_ps = r'(?:\{primary:node\d+\}|\{secondary:node\d+\})'
Original file line number Diff line number Diff line change @@ -483,6 +483,10 @@ def process_rawq(self):
483483 # to perform, the indicated option.
484484 elif command == DO :
485485 opt = self .rawq_getchar ()
486+ # int 0 produces an empty byte string which then has no ord
487+ # we can skip its processing
488+ if opt == b"" :
489+ continue
486490 self .msg ('IAC DO %s' , ord (opt ))
487491 if opt == TTYPE :
488492 self .sock .send (IAC + WILL + opt )
You can’t perform that action at this time.
0 commit comments