This commit is contained in:
Yun
2026-05-03 23:41:50 +08:00
commit 443cc77dbe
4 changed files with 128 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package ipx_test
import (
"testing"
"code.yun.ink/pkg/ipx"
)
func TestPublicIP(t *testing.T) {
ip := ipx.GetPublicIP()
t.Log(ip)
}
func TestLocalIP(t *testing.T) {
ip := ipx.GetLocalIP()
t.Log(ip)
}