张富强 4 months ago
parent
commit
757186a128

+ 1 - 1
curl/api_windows_x64.go

@@ -19,6 +19,6 @@ var dll_raw []byte
 
 func init() {
 	j_path := os.TempDir() + "libcurlx64.dll"
-	yu_file.Set(j_path, yu_deflate.DeflateDe(dll_raw))
+	yu_file.Write(j_path, yu_deflate.DeflateDe(dll_raw))
 	loadDLL(j_path)
 }

+ 1 - 1
net/dns_windows.go → dns/dns_windows.go

@@ -1,6 +1,6 @@
 //go:build windows
 
-package yu_net
+package dns
 
 import (
 	yu_math "gogs.qqck.cn/s/go-tools/math"

+ 1 - 1
net/dns_windows_test.go → dns/dns_windows_test.go

@@ -1,4 +1,4 @@
-package yu_net
+package dns
 
 import (
 	"fmt"

+ 2 - 2
hpsocket/client_windows.go

@@ -3,7 +3,7 @@
 package yu_hpsocket
 
 import (
-	yu_net "gogs.qqck.cn/s/go-tools/net"
+	yu_dns "gogs.qqck.cn/s/go-tools/dns"
 	yu_proxy "gogs.qqck.cn/s/go-tools/proxy"
 	yu_win "gogs.qqck.cn/s/go-tools/win"
 	"net"
@@ -85,7 +85,7 @@ func (t *Client[T]) Start(RemoteAddress string, Port int, AsyncConnect bool, Bin
 		if j_err != nil {
 			return false
 		}
-		j_ipaddr, _ := yu_net.ResolveIPS(j_host)
+		j_ipaddr, _ := yu_dns.ResolveIPS(j_host)
 		if len(j_ipaddr) < 1 {
 			return false
 		}

+ 2 - 2
hpsocket/client_windows_extend.go

@@ -4,7 +4,7 @@ package yu_hpsocket
 
 import (
 	yu_base64 "gogs.qqck.cn/s/go-tools/base64"
-	yu_net "gogs.qqck.cn/s/go-tools/net"
+	yu_dns "gogs.qqck.cn/s/go-tools/dns"
 	yu_proxy "gogs.qqck.cn/s/go-tools/proxy"
 	yu_strconv "gogs.qqck.cn/s/go-tools/strconv"
 	"net/netip"
@@ -108,7 +108,7 @@ func (t *Client[T]) connect_proxy() bool {
 
 		j_addr, j_err := netip.ParseAddr(t._RemoteAddress)
 		if j_err != nil {
-			j_ipaddr, _ := yu_net.ResolveIPS(t._RemoteAddress)
+			j_ipaddr, _ := yu_dns.ResolveIPS(t._RemoteAddress)
 			if len(j_ipaddr) < 1 {
 				t.Stop()
 				return false

+ 2 - 2
proxy/info_windows.go

@@ -4,8 +4,8 @@ package yu_proxy
 
 import (
 	yu_curl "gogs.qqck.cn/s/go-tools/curl"
+	yu_dns "gogs.qqck.cn/s/go-tools/dns"
 	yu_json "gogs.qqck.cn/s/go-tools/json"
-	yu_net "gogs.qqck.cn/s/go-tools/net"
 	yu_rand "gogs.qqck.cn/s/go-tools/rand"
 	"time"
 )
@@ -198,7 +198,7 @@ func (t *AddrInfo) IsVaild() bool {
 // 	return
 // }
 
-var infoEx_host, _ = yu_net.ResolveIPS("ping.huatuo.qq.com")
+var infoEx_host, _ = yu_dns.ResolveIPS("ping.huatuo.qq.com")
 
 func init() {
 	for j_i := 0; j_i < len(infoEx_host); j_i++ {