mirror of
https://github.com/GNS3/gns3-server
synced 2025-02-02 19:30:55 +00:00
Do not output debug for ioucon standard telnet commands
This commit is contained in:
parent
5a58f6efc8
commit
29e8d91745
@ -302,9 +302,12 @@ class TelnetServer(Console):
|
|||||||
buf.extend(self._read_block(1))
|
buf.extend(self._read_block(1))
|
||||||
iac_cmd.append(buf[iac_loc + 2])
|
iac_cmd.append(buf[iac_loc + 2])
|
||||||
# We do ECHO, SGA, and BINARY. Period.
|
# We do ECHO, SGA, and BINARY. Period.
|
||||||
if iac_cmd[1] == DO and iac_cmd[2] not in [ECHO, SGA, BINARY]:
|
if iac_cmd[1] == DO:
|
||||||
self._write_cur(bytes([IAC, WONT, iac_cmd[2]]))
|
if iac_cmd[2] not in [ECHO, SGA, BINARY]:
|
||||||
log.debug("Telnet WON'T {:#x}".format(iac_cmd[2]))
|
self._write_cur(bytes([IAC, WONT, iac_cmd[2]]))
|
||||||
|
log.debug("Telnet WON'T {:#x}".format(iac_cmd[2]))
|
||||||
|
elif iac_cmd[1] == WILL and iac_cmd[2] == BINARY:
|
||||||
|
pass # It's standard negociation we can ignore it
|
||||||
else:
|
else:
|
||||||
log.debug("Unhandled telnet command: "
|
log.debug("Unhandled telnet command: "
|
||||||
"{0:#x} {1:#x} {2:#x}".format(*iac_cmd))
|
"{0:#x} {1:#x} {2:#x}".format(*iac_cmd))
|
||||||
@ -357,7 +360,6 @@ class TelnetServer(Console):
|
|||||||
sock_fd.listen(socket.SOMAXCONN)
|
sock_fd.listen(socket.SOMAXCONN)
|
||||||
self.sock_fd = sock_fd
|
self.sock_fd = sock_fd
|
||||||
log.info("Telnet server ready for connections on {}:{}".format(self.addr, self.port))
|
log.info("Telnet server ready for connections on {}:{}".format(self.addr, self.port))
|
||||||
log.info(self.stop_event.is_set())
|
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user