2026-08-21

This commit is contained in:
Qin tian
2026-08-21 21:15:45 +08:00
parent ff51742659
commit 8a58b8b80d
5 changed files with 8 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
@echo off @echo off
set NDK=E:\init\windows-ndk-x86_64 set NDK=F:\init\windows-ndk-x86_64
set CGO_ENABLED=1 set CGO_ENABLED=1

View File

@@ -2,7 +2,7 @@
@echo off @echo off
set NDK=E:\init\windows-ndk-x86_64 set NDK=F:\init\windows-ndk-x86_64
set CGO_ENABLED=1 set CGO_ENABLED=1

View File

@@ -2,7 +2,7 @@
@echo off @echo off
set NDK=E:\init\windows-ndk-x86_64 set NDK=F:\init\windows-ndk-x86_64
set CGO_ENABLED=1 set CGO_ENABLED=1

View File

@@ -128,9 +128,12 @@ func normalizeHostPort(h string) string {
} }
return host return host
} }
ar := strings.Split(h, ":")
if len(ar) > 1 && ar[len(ar)-1] == "" {
return ar[0]
}
return h return h
} }
func (s *proxyRequest) httpCall(rw http.ResponseWriter, req *http.Request) { func (s *proxyRequest) httpCall(rw http.ResponseWriter, req *http.Request) {
if req == nil { if req == nil {
return return

View File

@@ -17,7 +17,7 @@ import (
"github.com/qtgolang/SunnyNet/src/websocket" "github.com/qtgolang/SunnyNet/src/websocket"
) )
const SunnyVersion = "2026-08-19" const SunnyVersion = "2026-08-21"
const Information = ` const Information = `
------------------------------------------------------ ------------------------------------------------------
欢迎使用 SunnyNet 网络中间件 - V` + SunnyVersion + ` 欢迎使用 SunnyNet 网络中间件 - V` + SunnyVersion + `