mirror of
https://github.com/taigrr/godns
synced 2026-03-24 04:02:22 -07:00
16 lines
218 B
Go
16 lines
218 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func testGetCurrentIP(t *testing.T) {
|
|
ip, _ := getCurrentIP("http://members.3322.org/dyndns/getip")
|
|
|
|
if ip == "" {
|
|
t.Log("IP is empty...")
|
|
} else {
|
|
t.Log("IP is:" + ip)
|
|
}
|
|
}
|