improve closeup

This commit is contained in:
idk 2018-12-25 03:41:51 -05:00
parent 179b25e01c
commit beca8fff5a
No known key found for this signature in database
GPG key ID: D75C03B39B5E14E1
7 changed files with 30 additions and 2 deletions

View file

@ -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
View file

@ -0,0 +1 @@
package resolver