mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-09-22 07:56:00 +00:00
feat: ACL
This commit is contained in:
@@ -2,7 +2,6 @@ package acl
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"regexp"
|
||||
"strings"
|
||||
)
|
||||
@@ -71,11 +70,3 @@ func ParseTextRules(text string) ([]TextRule, error) {
|
||||
}
|
||||
return rules, nil
|
||||
}
|
||||
|
||||
func ParseTextRulesFile(filename string) ([]TextRule, error) {
|
||||
bs, err := os.ReadFile(filename)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ParseTextRules(string(bs))
|
||||
}
|
||||
|
Reference in New Issue
Block a user