mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
web: show mitmproxy version
This commit is contained in:
parent
7ed6f10e35
commit
4cfa91a903
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user