hotfix: fix CVE (#669)

* hotfix: fix CVE

* feat: prefer use cmd rather than magic dns to set dns on linux

* feat: update go work sum

* feat: update ut
This commit is contained in:
naison
2025-07-10 10:35:48 +08:00
committed by GitHub
parent 31ead176c6
commit 4e568fe9e3
2573 changed files with 39 additions and 632239 deletions

View File

@@ -393,7 +393,7 @@ func udpClient(t *testing.T, ip string, port int) error {
func udpServer(t *testing.T, port int) {
// 创建监听
udpConn, err := net.ListenUDP("udp4", &net.UDPAddr{
IP: net.IPv4(0, 0, 0, 0),
IP: net.ParseIP("127.0.0.1"),
Port: port,
})
if err != nil {