fix: loadbalance group npe

This commit is contained in:
gVisor bot 2022-05-04 19:52:48 +08:00
parent 319884469d
commit b1c3a102cf

View file

@ -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 {