Merge pull request #7 from anoshenko/feature/fix-view-radius-setting

This commit is contained in:
Alexei Anoshenko 2024-11-14 14:20:13 +03:00 committed by GitHub
commit ff6b7c7e67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -592,8 +592,8 @@ func (radius *radiusPropertyData) Set(tag string, value any) bool {
case string:
if strings.Contains(value, "/") {
if values := strings.Split(value, "/"); len(values) == 2 {
xOK := radius.Set(tag+"-x", value[0])
yOK := radius.Set(tag+"-y", value[1])
xOK := radius.Set(tag+"-x", values[0])
yOK := radius.Set(tag+"-y", values[1])
return xOK && yOK
} else {
notCompatibleType(tag, value)