mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 17:32:25 +00:00
remove listAllowedCmd regexp
This commit is contained in:
@@ -25,8 +25,7 @@ type HandlerV1 struct {
|
|||||||
cfg *config.Conf
|
cfg *config.Conf
|
||||||
|
|
||||||
// allowedCmd and listAllowedCmd are regular expressions used to validate command names.
|
// allowedCmd and listAllowedCmd are regular expressions used to validate command names.
|
||||||
allowedCmd *regexp.Regexp
|
allowedCmd *regexp.Regexp
|
||||||
listAllowedCmd *regexp.Regexp
|
|
||||||
|
|
||||||
ver string
|
ver string
|
||||||
}
|
}
|
||||||
@@ -36,11 +35,10 @@ type HandlerV1 struct {
|
|||||||
// because there is no validation of parameters in this function.
|
// because there is no validation of parameters in this function.
|
||||||
func InitV1Server(o *HandlerV1InitStruct) *HandlerV1 {
|
func InitV1Server(o *HandlerV1InitStruct) *HandlerV1 {
|
||||||
return &HandlerV1{
|
return &HandlerV1{
|
||||||
log: &o.Log,
|
log: &o.Log,
|
||||||
cfg: o.Config,
|
cfg: o.Config,
|
||||||
allowedCmd: o.AllowedCmd,
|
allowedCmd: o.AllowedCmd,
|
||||||
listAllowedCmd: o.ListAllowedCmd,
|
ver: o.Ver,
|
||||||
ver: o.Ver,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user