From ac8f5c6f43de19200d404db7955afa38f8fad4d2 Mon Sep 17 00:00:00 2001 From: zu1k Date: Sun, 19 Jul 2020 07:36:58 +0800 Subject: [PATCH] add init for root --- cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index b8c6b0d..b05f078 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -57,6 +57,8 @@ Find document on: https://github.com/zu1k/nali Args: cobra.MinimumNArgs(0), Run: func(cmd *cobra.Command, args []string) { app.InitIPDB(ipdb.GetIPDBType()) + app.InitCDNDB() + if len(args) == 0 { stdin := bufio.NewScanner(os.Stdin) for stdin.Scan() {