mirror of
https://github.com/asmogo/nws.git
synced 2024-12-15 11:46:21 +00:00
14 lines
242 B
Go
14 lines
242 B
Go
|
package netstr
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"net"
|
||
|
)
|
||
|
|
||
|
// NostrDNS does not resolve anything
|
||
|
type NostrDNS struct{}
|
||
|
|
||
|
func (d NostrDNS) Resolve(ctx context.Context, name string) (context.Context, net.IP, error) {
|
||
|
return ctx, net.IP{0, 0, 0, 0}, nil
|
||
|
}
|