diff --git a/adapter/outboundgroup/loadbalance.go b/adapter/outboundgroup/loadbalance.go index f0342c56..198bf60d 100644 --- a/adapter/outboundgroup/loadbalance.go +++ b/adapter/outboundgroup/loadbalance.go @@ -36,6 +36,10 @@ func parseStrategy(config map[string]any) string { } func getKey(metadata *C.Metadata) string { + if metadata == nil { + return "" + } + if metadata.Host != "" { // ip host if ip := net.ParseIP(metadata.Host); ip != nil {