mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-01 01:04:15 -04:00
12 lines
173 B
Go
12 lines
173 B
Go
package app
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
// A DnsCache is an internal cache of DNS resolutions.
|
|
type DnsCache interface {
|
|
Get(domain string) net.IP
|
|
Add(domain string, ip net.IP)
|
|
}
|