This commit is contained in:
evilsocket 2018-01-13 13:33:04 +01:00
parent b4d8c639a0
commit fb593af38d
6 changed files with 7 additions and 5 deletions

View file

@ -29,7 +29,7 @@ func NewRestAPI(s *session.Session) *RestAPI {
api.AddParam(session.NewStringParameter("api.rest.address",
session.ParamIfaceAddress,
`^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$`,
session.IPv4Validator,
"Address to bind the API REST server to."))
api.AddParam(session.NewIntParameter("api.rest.port",