Add use remote time for vmess

This commit is contained in:
风扇滑翔翼
2025-09-06 18:23:12 +00:00
committed by GitHub
parent 6ec0291d4e
commit 30e3fa690e
5 changed files with 86 additions and 4 deletions
+1 -1
View File
@@ -10,10 +10,10 @@ import (
"hash/crc32"
"io"
"math"
"time"
"github.com/xtls/xray-core/common"
"github.com/xtls/xray-core/common/antireplay"
"github.com/xtls/xray-core/proxy/vmess/time"
)
var (
+1 -1
View File
@@ -4,9 +4,9 @@ import (
"fmt"
"strconv"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/xtls/xray-core/proxy/vmess/time"
)
func TestCreateAuthID(t *testing.T) {
+1 -1
View File
@@ -5,10 +5,10 @@ import (
"crypto/rand"
"encoding/binary"
"io"
"time"
"github.com/xtls/xray-core/common"
"github.com/xtls/xray-core/common/crypto"
"github.com/xtls/xray-core/proxy/vmess/time"
)
func SealVMessAEADHeader(key [16]byte, data []byte) []byte {