mirror of
https://github.com/oneclickvirt/basics.git
synced 2025-10-07 17:41:54 +08:00
16 lines
424 B
Go
16 lines
424 B
Go
package network
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
// 本文件夹 network 修改需要同步 https://github.com/oneclickvirt/security 否则 goecs 无法使用
|
|
func TestIpv4SecurityCheck(t *testing.T) {
|
|
// 全项测试
|
|
ipInfo, _, _ := NetworkCheck("both", false, "zh")
|
|
fmt.Println("--------------------------------------------------")
|
|
fmt.Printf(ipInfo)
|
|
fmt.Println("--------------------------------------------------")
|
|
}
|