refactor/fix: match dscp instead of tos (#294)

Co-authored-by: dae-bot[bot] <136105375+dae-bot[bot]@users.noreply.github.com>
This commit is contained in:
mzz
2023-08-20 23:43:33 +08:00
committed by GitHub
parent 5c9e0cfa15
commit c6557ce207
16 changed files with 150 additions and 128 deletions

View File

@ -147,7 +147,7 @@ func UintParserFactory[T constraints.Unsigned](callback func(f *config_parser.Fu
return func(log *logrus.Logger, f *config_parser.Function, key string, paramValueGroup []string, overrideOutbound *Outbound) (err error) {
var values []T
for _, v := range paramValueGroup {
val, err := strconv.ParseUint(v, 10, 8*size)
val, err := strconv.ParseUint(v, 0, 8*size)
if err != nil {
return fmt.Errorf("cannot parse %v: %w", v, err)
}