feat: Upgrade Sing-box dependencies and add Anytls support

This commit is contained in:
2025-10-15 15:27:53 +11:00
parent ee01f7f61c
commit 23d7e1d4f9
10 changed files with 498 additions and 69 deletions

View File

@@ -0,0 +1,21 @@
package test
import (
"encoding/json"
"fmt"
"log"
"testing"
"github.com/sagernet/sing/common/byteformats"
)
func TestUnmarshalNetworkBytesCompact(t *testing.T) {
up := &byteformats.NetworkBytesCompat{}
upmbps := "100 Mbps"
err := json.Unmarshal(fmt.Appendf(nil, `"%s"`, upmbps), up)
if err != nil {
log.Fatalf("error: %v", err)
return
}
log.Printf("%+v", up)
}