1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 09:56:18 -05:00
v2fly/app/dns.go

12 lines
173 B
Go
Raw Normal View History

2015-12-06 05:00:10 -05:00
package app
import (
"net"
)
// A DnsCache is an internal cache of DNS resolutions.
2015-12-06 05:00:10 -05:00
type DnsCache interface {
Get(domain string) net.IP
Add(domain string, ip net.IP)
}