diff options
author | Guido van Rossum <guido@python.org> | 2000-05-02 14:32:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-05-02 14:32:11 (GMT) |
commit | 823eb4ba817213698f0ac197cdcd4e56b738c32b (patch) | |
tree | cc04d26f0e54f03cfd5fdd3f75e5112a82fc84f0 /Lib | |
parent | ce33eb3ee8655f3e403bcae20ffe3aeb924ff40a (diff) | |
download | cpython-823eb4ba817213698f0ac197cdcd4e56b738c32b.zip cpython-823eb4ba817213698f0ac197cdcd4e56b738c32b.tar.gz cpython-823eb4ba817213698f0ac197cdcd4e56b738c32b.tar.bz2 |
Caolan McNamara:
telnetlib is unable to connect to a few telnet daemons because of
improper IAC handling, heres an attached oneliner to reject WILL
messages which will allow many more telnet daemons to work with it,
namely FreeBSD.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/telnetlib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index efb2b40..dfd549e 100644 --- a/Lib/telnetlib.py +++ b/Lib/telnetlib.py @@ -329,6 +329,7 @@ class Telnet: opt = self.rawq_getchar() self.msg('IAC %s %d', c == WILL and 'WILL' or 'WONT', ord(c)) + self.sock.send(IAC + DONT + opt) else: self.msg('IAC %s not recognized' % `c`) except EOFError: # raised by self.rawq_getchar() |