1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

disable quit on connection interrupt

This commit is contained in:
Shelikhoo 2022-05-01 16:04:37 +01:00
parent 7d7fe08ccc
commit f4b0241b4f
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -123,6 +123,8 @@ 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
if config.EnableFec {
ctx = context.WithValue(ctx, interfaces.ExtraOptionsUDPFECEnabled, true) //nolint:revive
}