From 46be319976f03e349bcba1f0c0e9e56956f91761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 7 Feb 2024 13:52:04 +0800 Subject: [PATCH] Fix external controller crash before started --- route/router.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/route/router.go b/route/router.go index adbdbd20..7a7c535a 100644 --- a/route/router.go +++ b/route/router.go @@ -415,6 +415,9 @@ func (r *Router) Initialize(inbounds []adapter.Inbound, outbounds []adapter.Outb } func (r *Router) Outbounds() []adapter.Outbound { + if !r.started { + return nil + } return r.outbounds }