|
|
@ -226,10 +226,7 @@ func (w *VMessRequestWriter) Write(writer io.Writer, request *VMessRequest) erro |
|
|
|
buffer = append(buffer, []byte(request.Address.Domain)...) |
|
|
|
buffer = append(buffer, []byte(request.Address.Domain)...) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
paddingLength := blockSize - 1 - (len(buffer)-encryptionBegin)%blockSize |
|
|
|
paddingLength := mrand.Intn(32) + 1 |
|
|
|
if paddingLength == 0 { |
|
|
|
|
|
|
|
paddingLength = blockSize |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
paddingBuffer := make([]byte, paddingLength) |
|
|
|
paddingBuffer := make([]byte, paddingLength) |
|
|
|
_, err = rand.Read(paddingBuffer) |
|
|
|
_, err = rand.Read(paddingBuffer) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|