wip: migrate to mono-repo. SPN has already been moved to spn/
This commit is contained in:
14
service/intel/resolver.go
Normal file
14
service/intel/resolver.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package intel
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
var reverseResolver func(ctx context.Context, ip string) (domain string, err error)
|
||||
|
||||
// SetReverseResolver allows the resolver module to register a function to allow reverse resolving IPs to domains.
|
||||
func SetReverseResolver(fn func(ctx context.Context, ip string) (domain string, err error)) {
|
||||
if reverseResolver == nil {
|
||||
reverseResolver = fn
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user