Skip to content

Commit

Permalink
add init for root
Browse files Browse the repository at this point in the history
  • Loading branch information
zu1k committed Jul 18, 2020
1 parent 32074e6 commit ac8f5c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ac8f5c6

Please sign in to comment.