This commit is contained in:
cdle
2023-06-29 21:59:20 +08:00
parent d2c599dd68
commit 70bf5a33a6
4 changed files with 50 additions and 6 deletions
+8 -2
View File
@@ -15,11 +15,17 @@ import (
"github.com/cdle/sillyplus/utils"
)
var sillyplus = core.MakeBucket("sillyplus")
var app = core.MakeBucket("app")
func main() {
go func() {
ip, err := utils.GetPublicIP()
if err == nil {
app.Set("ip", ip)
}
}()
core.Init()
if sillyplus.GetBool("anti_kasi") {
if app.GetBool("anti_kasi") {
go utils.MonitorGoroutine()
}
d := false