Update sing-box core, refactor MASQUE, update XHTTP

This commit is contained in:
Shtorm
2026-05-29 01:31:57 +03:00
parent 1cb7950810
commit b953954b60
111 changed files with 1291 additions and 1660 deletions

View File

@@ -140,7 +140,7 @@ func (n *Inbound) Start(stage adapter.StartStage) error {
func (n *Inbound) Close() error {
return common.Close(
&n.listener,
n.listener,
common.PtrOrNil(n.httpServer),
n.h3Server,
n.tlsConfig,

View File

@@ -22,7 +22,7 @@ func generatePaddingHeader() string {
paddingLen := rand.Intn(32) + 30
padding := make([]byte, paddingLen)
bits := rand.Uint64()
for i := 0; i < 16; i++ {
for i := range 16 {
padding[i] = "!#$()+<>?@[]^`{}"[bits&15]
bits >>= 4
}