Fix: attribute prefix (#79)

This commit is contained in:
Loyalsoldier 2020-07-27 10:53:16 +08:00 committed by GitHub
parent 54da5452cc
commit 31595ff3f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ func parseAttribute(attr string) (*router.Domain_Attribute, error) {
return &attribute, errors.New("invalid attribute: " + attr)
}
attr = attr[0:]
attr = attr[1:]
parts := strings.Split(attr, "=")
if len(parts) == 1 {
attribute.Key = strings.ToLower(parts[0])