mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
What happened: when moving to uSockets for the http client, I forgot to call `SSL_set_tlsext_host_name` and uSockets apparently doesn't do that
This commit is contained in:
@@ -3698,3 +3698,14 @@ test "eqlCaseInsensitiveASCII" {
|
||||
try std.testing.expect(!eqlCaseInsensitiveASCII("aBcD", "NOOO", true));
|
||||
try std.testing.expect(!eqlCaseInsensitiveASCII("aBcD", "LENGTH CHECK", true));
|
||||
}
|
||||
|
||||
pub fn isIPAddress(input: []const u8) bool {
|
||||
if (containsChar(input, ':'))
|
||||
return true;
|
||||
|
||||
if (std.x.os.IPv4.parse(input)) |_| {
|
||||
return true;
|
||||
} else |_| {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user