Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #117 from tnich/exec_bug_fix
Browse files Browse the repository at this point in the history
Fixing config parsing of disable_exec
  • Loading branch information
tnich committed Mar 17, 2018
2 parents e39845a + 9cdbbad commit 1b4fe14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion honssh/protocols/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def parse_packet(self, parent, message_num, payload):
self.out.channel_opened(the_uuid, channel['name'])
channel['session'] = term.Term(self.out, the_uuid, channel['name'], self, channel['clientID'])
elif channel_type == 'exec':
if self.cfg.get(['hp-restrict', 'disable_exec']):
if self.cfg.getboolean(['hp-restrict', 'disable_exec']):
log.msg(log.LPURPLE, '[SSH]', 'Detected EXEC Channel Request - Disabling!')
self.sendOn = False
self.send_back(parent, 100, self.int_to_hex(channel['serverID']))
Expand Down

0 comments on commit 1b4fe14

Please sign in to comment.