fix parse_address can return nil

This commit is contained in:
Laytan Laats
2023-05-19 19:14:25 +02:00
parent 8693a045bb
commit ff745e0ad8

View File

@@ -392,6 +392,10 @@ load_resolv_conf :: proc(resolv_conf_path: string, allocator := context.allocato
}
addr := parse_address(server_ip_str)
if addr == nil {
continue
}
endpoint := Endpoint{
addr,
53,