mirror of
https://github.com/taigrr/godns
synced 2026-04-14 08:36:07 -07:00
14 lines
193 B
Go
14 lines
193 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func Test_get_current_IP(t *testing.T) {
|
|
ip, _ := get_currentIP("http://members.3322.org/dyndns/getip")
|
|
|
|
if ip == "" {
|
|
t.Error("Cannot get IP...")
|
|
}
|
|
}
|