mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-04 09:17:32 -05: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)
|
|
}
|