mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
fix: loadbalance group npe
This commit is contained in:
parent
fb58595d44
commit
9969e1706e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user