fix parse_address can return nil
This commit is contained in:
1 parent
8693a045bb
commit
ff745e0ad8
1 file changed
+4
@@ -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