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

Fix "disable quit on connection interrupt"

This commit is contained in:
dyhkwong 2022-05-02 19:52:04 +08:00 committed by Xiaokang Wang (Shelikhoo)
parent dbbb84007f
commit 703b2da5a7

View File

@ -123,7 +123,7 @@ func createStatusFromConfig(config *UDPProtocolConfig) (*status, error) {
s.msgbus = ibus.NewMessageBus()
ctx = context.WithValue(ctx, interfaces.ExtraOptionsMessageBus, s.msgbus) //nolint:revive
s.ctx = context.WithValue(s.ctx, interfaces.ExtraOptionsDisableAutoQuitForClient, true) //nolint:revive
ctx = context.WithValue(ctx, interfaces.ExtraOptionsDisableAutoQuitForClient, true) //nolint:revive
if config.EnableFec {
ctx = context.WithValue(ctx, interfaces.ExtraOptionsUDPFECEnabled, true) //nolint:revive