mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-10 03:00:15 +08:00
13 lines
188 B
Go
13 lines
188 B
Go
package dns
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
type FakeDNS interface {
|
|
Start() error
|
|
Stop() error
|
|
// IPToHost returns the corresponding domain for the given IP.
|
|
IPToHost(ip net.IP) (string, bool)
|
|
}
|