mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
Add Packet Scramble Support for VLite UDP Client
This commit is contained in:
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user