1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

Add Packet Scramble Support for VLite UDP Client

This commit is contained in:
Shelikhoo 2022-04-14 22:54:32 +01:00 committed by Xiaokang Wang (Shelikhoo)
parent 4016e0e961
commit 7b1203ca96

View File

@ -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 {