mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: api.rest is now on http and port 8081 by default
This commit is contained in:
parent
31489e4d70
commit
319b6059a5
1 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ func NewRestAPI(s *session.Session) *RestAPI {
|
|||
"Address to bind the API REST server to."))
|
||||
|
||||
api.AddParam(session.NewIntParameter("api.rest.port",
|
||||
"8083",
|
||||
"8081",
|
||||
"Port to bind the API REST server to."))
|
||||
|
||||
api.AddParam(session.NewStringParameter("api.rest.username",
|
||||
|
@ -59,14 +59,14 @@ func NewRestAPI(s *session.Session) *RestAPI {
|
|||
"API authentication password."))
|
||||
|
||||
api.AddParam(session.NewStringParameter("api.rest.certificate",
|
||||
"~/.bcap-api.rest.certificate.pem",
|
||||
"",
|
||||
"",
|
||||
"API TLS certificate."))
|
||||
|
||||
tls.CertConfigToModule("api.rest", &api.SessionModule, tls.DefaultLegitConfig)
|
||||
|
||||
api.AddParam(session.NewStringParameter("api.rest.key",
|
||||
"~/.bcap-api.rest.key.pem",
|
||||
"",
|
||||
"",
|
||||
"API TLS key"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue