Linux 一键安装命令

This commit is contained in:
naiba
2021-08-10 20:04:58 +08:00
parent 4740a41e36
commit 985ecc7c65
9 changed files with 62 additions and 110 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"context"
"github.com/naiba/nezha/util"
"log"
"time"
@@ -47,9 +46,6 @@ func init() {
if dao.Conf.GRPCPort == 0 {
dao.Conf.GRPCPort = 5555
}
if dao.Conf.GRPCHost == "" {
dao.Conf.GRPCHost = util.FetchGeoIP(false).IP
}
dao.Cache = cache.New(5*time.Minute, 10*time.Minute)
initSystem()