mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Merge pull request #2547 from laytan/parse-address-can-return-nil
fix parse_address can return nil
This commit is contained in:
@@ -392,6 +392,10 @@ load_resolv_conf :: proc(resolv_conf_path: string, allocator := context.allocato
|
|||||||
}
|
}
|
||||||
|
|
||||||
addr := parse_address(server_ip_str)
|
addr := parse_address(server_ip_str)
|
||||||
|
if addr == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
endpoint := Endpoint{
|
endpoint := Endpoint{
|
||||||
addr,
|
addr,
|
||||||
53,
|
53,
|
||||||
|
|||||||
Reference in New Issue
Block a user