new: implemented api.rest module and GET /api/session route (ref #5).

This commit is contained in:
evilsocket 2018-01-08 04:03:09 +01:00
parent aa25dae73c
commit c2826c9094
8 changed files with 232 additions and 31 deletions

View file

@ -49,15 +49,15 @@ func NewHttpProxy(s *session.Session) *HttpProxy {
"80",
"HTTP port to redirect when the proxy is activated."))
p.AddParam(session.NewIntParameter("http.proxy.port",
"8080",
"Port to bind the HTTP proxy to."))
p.AddParam(session.NewStringParameter("http.proxy.address",
"<interface address>",
`^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$`,
"Address to bind the HTTP proxy to."))
p.AddParam(session.NewIntParameter("http.proxy.port",
"8080",
"Port to bind the HTTP proxy to."))
p.AddParam(session.NewStringParameter("http.proxy.script",
"",
"",