Skip to content

Commit

Permalink
Add a temporary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
3JoB committed Aug 27, 2023
1 parent 8d8d0eb commit 364604b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,19 @@ func (t *Teler) checkCustomRules(c *atreugo.RequestCtx) error {

if (t.opt.MaxMind != MaxMind{}) {
if t.opt.MaxMind.Install {
}

}
nip := net.ParseIP(clientIP)

nip := net.ParseIP(clientIP)
var asn ASN
var city City

var asn ASN
var city City
t.threat.MaxM.City.Lookup(nip, &city)
t.threat.MaxM.ASN.Lookup(nip, &asn)

t.threat.MaxM.City.Lookup(nip, &city)
t.threat.MaxM.ASN.Lookup(nip, &asn)

t.log.Info().Any("ASN", asn)
t.log.Info().Any("City", city)
// They are temporary Debug methods and will be removed soon.
t.log.Info().Any("ASN", asn).Msg("asn msg")
t.log.Info().Any("City", city).Msg("city msg")
}
}

// Check if the request is in cache
key := headers + uri + body
Expand Down

0 comments on commit 364604b

Please sign in to comment.