Skip to content

Commit

Permalink
bulk: make sure to output IP field if not specified.
Browse files Browse the repository at this point in the history
we were only printing the header and not the actual field itself.
  • Loading branch information
UmanShahzad committed Dec 4, 2021
1 parent e1853d7 commit fe3df87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipinfo/utils_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ func outputFieldBatchCore(
}
if !hasIPField {
fmt.Printf("ip,")
fields = append([]string{"ip"}, fields...)
}
}

Expand Down Expand Up @@ -433,6 +434,7 @@ func outputFieldBatchASNDetails(
}
if !hasASNIdField {
fmt.Printf("id,")
fields = append([]string{"id"}, fields...)
}
}

Expand Down

0 comments on commit fe3df87

Please sign in to comment.