mirror of
https://github.com/oneclickvirt/basics.git
synced 2026-04-23 00:37:11 +08:00
18 lines
473 B
Go
18 lines
473 B
Go
package network
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
// 本文件夹 network 修改需要同步 https://github.com/oneclickvirt/security 否则 goecs 无法使用
|
|
func TestIpv4SecurityCheck(t *testing.T) {
|
|
// 全项测试
|
|
ipv4, ipv6, ipInfo, _, _ := NetworkCheck("both", false, "zh")
|
|
fmt.Println("--------------------------------------------------")
|
|
fmt.Println(ipv4)
|
|
fmt.Println(ipv6)
|
|
fmt.Print(ipInfo)
|
|
fmt.Println("--------------------------------------------------")
|
|
}
|