mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
fix(dns): don't exit early on no hosts in hosts file
If we don't have any hosts specified we'll still not generate any overrides which is fine, but we'll continue onto actually trying to resolve the hostname we came into the function for initially.
This commit is contained in:
@@ -44,9 +44,6 @@ _get_dns_records_os :: proc(hostname: string, type: DNS_Record_Type, allocator :
|
|||||||
if !hosts_ok {
|
if !hosts_ok {
|
||||||
return nil, .Invalid_Hosts_Config_Error
|
return nil, .Invalid_Hosts_Config_Error
|
||||||
}
|
}
|
||||||
if len(hosts) == 0 {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
host_overrides := make([dynamic]DNS_Record)
|
host_overrides := make([dynamic]DNS_Record)
|
||||||
for host in hosts {
|
for host in hosts {
|
||||||
|
|||||||
Reference in New Issue
Block a user