null判断
This commit is contained in:
		
							parent
							
								
									f749200bfd
								
							
						
					
					
						commit
						7f5cad38ec
					
				@ -94,10 +94,13 @@ namespace FastGithub.ReverseProxy
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
                if (subject is IList list)
 | 
					                if (subject is IList list)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    var type = (int)list[0]!;
 | 
					                    if (list.Count >= 2 && list[0] is int nameType && nameType == 2)
 | 
				
			||||||
                    if (type == 2) // DNS
 | 
					 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        yield return list[list.Count - 1]!.ToString()!;
 | 
					                        var dnsName = list[1]?.ToString();
 | 
				
			||||||
 | 
					                        if(dnsName!=null)
 | 
				
			||||||
 | 
					                        {
 | 
				
			||||||
 | 
					                            yield return dnsName;
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user