Skip to content

Commit

Permalink
Added IPv4 to return object from server for ReverseLookups
Browse files Browse the repository at this point in the history
  • Loading branch information
b0yd committed Jan 10, 2022
1 parent 8b316bc commit 440167d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/crobat-server/grpc/server.go
Expand Up @@ -74,6 +74,7 @@ func (s *CrobatServer) ReverseDNS(query *crobat.QueryRequest, stream crobat.Crob
result := searcher.Result()
reply := &crobat.Domain{
Domain: result.Domain,
IPv4: result.IPv4,
}
if err := stream.Send(reply); err != nil {
return err
Expand All @@ -96,6 +97,7 @@ func (s *CrobatServer) ReverseDNSRange(query *crobat.QueryRequest, stream crobat
result := searcher.Result()
reply := &crobat.Domain{
Domain: result.Domain,
IPv4: result.IPv4,
}
if err := stream.Send(reply); err != nil {
return err
Expand Down

0 comments on commit 440167d

Please sign in to comment.