From f4b0241b4f0b498b00a88d99e4ed96a72b65d2a2 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Sun, 1 May 2022 16:04:37 +0100 Subject: [PATCH] disable quit on connection interrupt --- proxy/vlite/outbound/outbound.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/vlite/outbound/outbound.go b/proxy/vlite/outbound/outbound.go index 4960929b0..eab630a7e 100644 --- a/proxy/vlite/outbound/outbound.go +++ b/proxy/vlite/outbound/outbound.go @@ -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 }