Browse Source

fix segment fault when use api remote config

Yingyu Cheng 6 years ago
parent
commit
1b1146dbaa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/proxyman/outbound/outbound.go

+ 1 - 1
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
 	}