mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +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 tornado.websocket
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
|
from .. import version
|
||||||
|
|
||||||
|
|
||||||
class APIError(tornado.web.HTTPError):
|
class APIError(tornado.web.HTTPError):
|
||||||
@ -112,6 +113,7 @@ class Settings(RequestHandler):
|
|||||||
def get(self):
|
def get(self):
|
||||||
self.write(dict(
|
self.write(dict(
|
||||||
data=dict(
|
data=dict(
|
||||||
|
version=version.VERSION,
|
||||||
mode=str(self.master.server.config.mode),
|
mode=str(self.master.server.config.mode),
|
||||||
intercept=self.state.intercept_txt
|
intercept=self.state.intercept_txt
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user