| ... | @@ -13704,7 +13704,7 @@ fn netLookupFallible( | ... | @@ -13704,7 +13704,7 @@ fn netLookupFallible( |
| 13704 | // Check for equal to "localhost(.)" or ends in ".localhost(.)" | 13704 | // Check for equal to "localhost(.)" or ends in ".localhost(.)" |
| 13705 | const localhost = if (name[name.len - 1] == '.') "localhost." else "localhost"; | 13705 | const localhost = if (name[name.len - 1] == '.') "localhost." else "localhost"; |
| 13706 | if (std.mem.endsWith(u8, name, localhost) and | 13706 | if (std.mem.endsWith(u8, name, localhost) and |
| 13707 | (name.len == localhost.len or name[name.len - localhost.len] == '.')) | 13707 | (name.len == localhost.len or name[name.len - localhost.len - 1] == '.')) |
| 13708 | { | 13708 | { |
| 13709 | var results_buffer: [3]HostName.LookupResult = undefined; | 13709 | var results_buffer: [3]HostName.LookupResult = undefined; |
| 13710 | var results_index: usize = 0; | 13710 | var results_index: usize = 0; |