mirror of
https://github.com/bettercap/bettercap
synced 2025-07-14 00:53:46 -07:00
fix: fixed api.rest module
This commit is contained in:
parent
9daa9f61d5
commit
52629c0e9e
3 changed files with 37 additions and 8 deletions
|
@ -98,7 +98,7 @@ func (api *RestAPI) Configure() error {
|
|||
var address string
|
||||
var port int
|
||||
|
||||
if err, address = api.StringParam("api.rest.addr"); err != nil {
|
||||
if err, address = api.StringParam("api.rest.address"); err != nil {
|
||||
return err
|
||||
} else if err, port = api.IntParam("api.rest.port"); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue