mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-24 10:38:34 +00:00
Update Support Go version (#143)
This commit is contained in:
@@ -37,14 +37,14 @@ func AclConfigLoad(file string) (*ACLConfig, error) {
|
||||
File: file,
|
||||
Info: make([]*AuthInfo, 0, 4),
|
||||
}
|
||||
err := aclconifg.Prase()
|
||||
err := aclconifg.Parse()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return aclconifg, err
|
||||
}
|
||||
|
||||
func (c *ACLConfig) Prase() error {
|
||||
func (c *ACLConfig) Parse() error {
|
||||
f, err := os.Open(c.File)
|
||||
defer f.Close()
|
||||
if err != nil {
|
||||
|
||||
@@ -56,7 +56,7 @@ func Init() *authHTTP {
|
||||
return &authHTTP{client: httpClient}
|
||||
}
|
||||
|
||||
//CheckAuth check mqtt connect
|
||||
// CheckConnect check mqtt connect
|
||||
func (a *authHTTP) CheckConnect(clientID, username, password string) bool {
|
||||
action := "connect"
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user