mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-10 07:45:54 -04:00
Add Packet Scramble Support for VLite UDP Client
This commit is contained in:
committed by
Xiaokang Wang (Shelikhoo)
parent
4016e0e961
commit
7b1203ca96
@@ -128,6 +128,10 @@ func createStatusFromConfig(config *UDPProtocolConfig) (*status, error) {
|
||||
ctx = context.WithValue(ctx, interfaces.ExtraOptionsUDPFECEnabled, true)
|
||||
}
|
||||
|
||||
if config.ScramblePacket {
|
||||
ctx = context.WithValue(ctx, interfaces.ExtraOptionsUDPShouldMask, true)
|
||||
}
|
||||
|
||||
ctx = context.WithValue(ctx, interfaces.ExtraOptionsUDPMask, string(s.password))
|
||||
|
||||
if config.HandshakeMaskingPaddingSize != 0 {
|
||||
|
||||
Reference in New Issue
Block a user