mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Implement DNS module (#1691)
* Boilerplate for DNS stuff * Add c-ares * lookup * make * Implement dns.lookup * Create c-ares * wip * normalize * repro * Revert "repro" This reverts commit 8b93e0c295b335b8882a9601da47720348549beb. * Implement macOS `getaddrinfo_async_start` * embiggen * Update string_immutable.zig * Update Makefile * alright * Update .gitignore * Add types * more ccache * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update bun.d.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -3974,6 +3974,14 @@ pub fn isIPAddress(input: []const u8) bool {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn isIPV6Address(input: []const u8) bool {
|
||||
if (std.net.Address.parseIp6(input, 0)) |_| {
|
||||
return true;
|
||||
} else |_| {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn cloneNormalizingSeparators(
|
||||
allocator: std.mem.Allocator,
|
||||
input: []const u8,
|
||||
|
||||
Reference in New Issue
Block a user