From 1b1146dbaa3812a27b9233fe11628e9cec3d05cb Mon Sep 17 00:00:00 2001 From: Yingyu Cheng Date: Sat, 20 Jul 2019 16:54:58 +0800 Subject: [PATCH] fix segment fault when use api remote config --- app/proxyman/outbound/outbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/proxyman/outbound/outbound.go b/app/proxyman/outbound/outbound.go index 0b489945..af286116 100644 --- a/app/proxyman/outbound/outbound.go +++ b/app/proxyman/outbound/outbound.go @@ -130,7 +130,7 @@ func (m *Manager) RemoveHandler(ctx context.Context, tag string) error { defer m.access.Unlock() delete(m.taggedHandler, tag) - if m.defaultHandler.Tag() == tag { + if m.defaultHandler != nil && m.defaultHandler.Tag() == tag { m.defaultHandler = nil }