add local config

This commit is contained in:
wh1te909 2022-12-02 23:22:14 -08:00
parent de01fa5d80
commit ec6ea9aded
4 changed files with 61 additions and 13 deletions

View file

@ -23,6 +23,7 @@ import (
"path/filepath"
"runtime"
goDebug "runtime/debug"
"strconv"
"strings"
"time"
@ -331,3 +332,10 @@ func stringInSlice(a string, list []string) bool {
}
return false
}
func regRangeToInt(s string) int {
split := strings.Split(s, ",")
min, _ := strconv.Atoi(split[0])
max, _ := strconv.Atoi(split[1])
return randRange(min, max)
}