diff --git a/proxy/vlite/outbound/outbound.go b/proxy/vlite/outbound/outbound.go index fc49fa594..01561604c 100644 --- a/proxy/vlite/outbound/outbound.go +++ b/proxy/vlite/outbound/outbound.go @@ -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 {