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:
parent
7d7fe08ccc
commit
f4b0241b4f
@ -123,6 +123,8 @@ func createStatusFromConfig(config *UDPProtocolConfig) (*status, error) {
|
|||||||
s.msgbus = ibus.NewMessageBus()
|
s.msgbus = ibus.NewMessageBus()
|
||||||
ctx = context.WithValue(ctx, interfaces.ExtraOptionsMessageBus, s.msgbus) //nolint:revive
|
ctx = context.WithValue(ctx, interfaces.ExtraOptionsMessageBus, s.msgbus) //nolint:revive
|
||||||
|
|
||||||
|
s.ctx = context.WithValue(s.ctx, interfaces.ExtraOptionsDisableAutoQuitForClient, true) //nolint:revive
|
||||||
|
|
||||||
if config.EnableFec {
|
if config.EnableFec {
|
||||||
ctx = context.WithValue(ctx, interfaces.ExtraOptionsUDPFECEnabled, true) //nolint:revive
|
ctx = context.WithValue(ctx, interfaces.ExtraOptionsUDPFECEnabled, true) //nolint:revive
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user