🔨 开启 pprof、优化 agent

This commit is contained in:
naiba
2021-05-10 18:04:38 +08:00
parent 842233976b
commit 169865a7e4
8 changed files with 13 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ import (
pb "github.com/naiba/nezha/proto"
)
var Version = "v0.7.0" // !!记得修改 README 中的 badge 版本!!
var Version = "v0.7.1" // !!记得修改 README 中的 badge 版本!!
const (
SnapshotDelay = 3

View File

@@ -18,7 +18,7 @@ func (a *AuthHandler) GetRequestMetadata(ctx context.Context, uri ...string) (ma
}
func (a *AuthHandler) RequireTransportSecurity() bool {
return !dao.Conf.Debug
return false
}
func (a *AuthHandler) Check(ctx context.Context) (uint64, error) {