web: show mitmproxy version

This commit is contained in:
Maximilian Hils 2014-12-25 02:08:58 +01:00
parent 7ed6f10e35
commit 4cfa91a903

View File

@ -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
) )