mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-27 19:15:33 +08:00
web: show mitmproxy version
This commit is contained in:
@@ -3,6 +3,7 @@ import tornado.web
|
||||
import tornado.websocket
|
||||
import logging
|
||||
import json
|
||||
from .. import version
|
||||
|
||||
|
||||
class APIError(tornado.web.HTTPError):
|
||||
@@ -112,6 +113,7 @@ class Settings(RequestHandler):
|
||||
def get(self):
|
||||
self.write(dict(
|
||||
data=dict(
|
||||
version=version.VERSION,
|
||||
mode=str(self.master.server.config.mode),
|
||||
intercept=self.state.intercept_txt
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user