mirror of https://github.com/dnomd343/XProxy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
802 B
36 lines
802 B
package main
|
|
|
|
import "XProxy/assets"
|
|
|
|
func main() {
|
|
remoteAssets := map[string]string{
|
|
"geoip.dat": "https://cdn.dnomd343.top/v2ray-rules-dat/geoip.dat.xz",
|
|
"geosite.dat": "https://cdn.dnomd343.top/v2ray-rules-dat/geosite.dat.xz",
|
|
}
|
|
assets.SetAssets(remoteAssets)
|
|
|
|
//assets.Update()
|
|
|
|
select {}
|
|
|
|
//logger.Warnf("cron -> `%s`", assets.GetCron())
|
|
//assets.SetCron("@every 1s")
|
|
//logger.Warnf("cron -> `%s`", assets.GetCron())
|
|
//
|
|
//time.Sleep(5 * time.Second)
|
|
//assets.SetCron("@every 2s")
|
|
//logger.Warnf("cron -> `%s`", assets.GetCron())
|
|
//
|
|
//time.Sleep(8 * time.Second)
|
|
//assets.SetCron("")
|
|
//logger.Warnf("cron -> `%s`", assets.GetCron())
|
|
//select {}
|
|
|
|
//assets.LoadBuildin()
|
|
|
|
//assets.Update(false)
|
|
//assets.SetUpdateConfig(assets.UpdateSettings{
|
|
// cron: "",
|
|
// ass
|
|
//})
|
|
}
|
|
|