Skip to content

Commit

Permalink
fix bug for web log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-X-Net committed Jul 8, 2023
1 parent 760fd37 commit cb8a570
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/default/x_tunnel/local/cloudflare_front/web_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def req_log_handler(self):
cmd = reqs["cmd"]

if cmd == "get_last":
max_line = int(reqs["max_line"][0])
max_line = int(reqs["max_line"])
data = front.logger.get_last_lines(max_line)
elif cmd == "get_new":
last_no = int(reqs["last_no"][0])
last_no = int(reqs["last_no"])
data = front.logger.get_new_lines(last_no)
else:
front.logger.error('PAC %s %s %s ', self.address_string(), self.command, self.path)
Expand Down
4 changes: 2 additions & 2 deletions code/default/x_tunnel/local/tls_relay_front/web_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def req_log_handler(self):
cmd = reqs["cmd"]

if cmd == "get_last":
max_line = int(reqs["max_line"][0])
max_line = int(reqs["max_line"])
data = front.logger.get_last_lines(max_line)
elif cmd == "get_new":
last_no = int(reqs["last_no"][0])
last_no = int(reqs["last_no"])
data = front.logger.get_new_lines(last_no)
else:
front.logger.error('PAC %s %s %s ', self.address_string(), self.command, self.path)
Expand Down

0 comments on commit cb8a570

Please sign in to comment.