mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 16:25:39 +00:00
16 lines
239 B
Go
16 lines
239 B
Go
package jsonDNS
|
|
|
|
import (
|
|
"fmt"
|
|
"net"
|
|
"testing"
|
|
)
|
|
|
|
func TestFindIp(t *testing.T) {
|
|
|
|
fmt.Println(IsGlobalIP(net.IP{127, 0, 0, 1}))
|
|
fmt.Println(IsGlobalIP(net.IP{192, 168, 0, 0}))
|
|
fmt.Println(IsGlobalIP(net.IP{110, 100, 100, 100}))
|
|
|
|
}
|