File tree 2 files changed +0
-7
lines changed
2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ type IPResult struct {
13
13
Action string `json:"action"`
14
14
Company string `json:"company"`
15
15
Country string `json:"country"`
16
- RequestID string `json:"id"`
17
16
BadReputation bool `json:"bad"`
18
17
Bot bool `json:"bot"`
19
18
Datacenter bool `json:"dc"`
@@ -77,7 +76,6 @@ func (i *IP) Check(addr string) (*IPResult, error) {
77
76
Company : info .Company ,
78
77
Tor : info .IsTor ,
79
78
Proxy : info .IsProxy ,
80
- RequestID : info .RequestID ,
81
79
SearchEngine : info .IsSearchEngine ,
82
80
Private : info .IsPrivate ,
83
81
Spam : info .IsSpam ,
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ package ip
2
2
3
3
import (
4
4
"context"
5
- "math/rand" // #nosec
6
5
"net"
7
- "strconv"
8
6
"time"
9
7
10
8
"github.com/optimatiq/threatbite/ip/datasource"
@@ -18,7 +16,6 @@ type Info struct {
18
16
Company string
19
17
Country string
20
18
Hostnames []string
21
- RequestID string
22
19
IsProxy bool
23
20
IsSearchEngine bool
24
21
IsTor bool
@@ -162,12 +159,10 @@ func (i *IP) GetInfo(ip net.IP) (*Info, error) {
162
159
score = 100
163
160
}
164
161
165
- // TODO(RW) the request_id is already generated at the middleware level it should be passed here
166
162
return & Info {
167
163
Company : company ,
168
164
Country : country ,
169
165
IsProxy : isProxy ,
170
- RequestID : "ID" + strconv .FormatInt (rand .Int63n (9223372036854775807 ), 10 ), // #nosec
171
166
IsSearchEngine : isSearch ,
172
167
IsTor : isTor ,
173
168
Hostnames : hostnames ,
You can’t perform that action at this time.
0 commit comments