improve closeup
This commit is contained in:
parent
179b25e01c
commit
beca8fff5a
7 changed files with 30 additions and 2 deletions
|
@ -33,6 +33,10 @@ func (r Resolver) ResolveI2P(ctx context.Context, name string) (context.Context,
|
|||
return ctx, &raddr, nil
|
||||
}
|
||||
|
||||
func (r Resolver) Cleanup() error {
|
||||
return r.SAMResolver.SAM.Close()
|
||||
}
|
||||
|
||||
func (r Resolver) ValidateI2PAddr(name string) bool {
|
||||
noi2p := false
|
||||
for _, suffix := range r.allowedSuffixes {
|
||||
|
|
1
resolve/resolver_test.go
Normal file
1
resolve/resolver_test.go
Normal file
|
@ -0,0 +1 @@
|
|||
package resolver
|
Loading…
Add table
Add a link
Reference in a new issue