This commit is contained in:
1-6
2023-07-12 15:41:07 +08:00
parent 396231f528
commit d0716ea1bd
11 changed files with 89 additions and 42 deletions
+4 -2
View File
@@ -16,14 +16,16 @@ import (
)
var app = core.MakeBucket("app")
var ip = ""
func main() {
ip = app.GetString("ip")
go func() {
ip, err := utils.GetPublicIP()
var err error
ip, err = utils.GetPublicIP()
if err == nil {
app.Set("ip", ip)
}
}()
core.Init()
if app.GetBool("anti_kasi") {