commit
This commit is contained in:
+17
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user