@cubicecho/server-kit 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db/ssl.js +2 -2
- package/package.json +1 -1
package/dist/db/ssl.js
CHANGED
|
@@ -65,8 +65,8 @@ export function isPrivateHost(hostname) {
|
|
|
65
65
|
const [firstOctet, secondOctet] = ipv4.slice(1).map(Number);
|
|
66
66
|
return PRIVATE_IPV4.some((range) => range.first === firstOctet && secondOctet >= range.low && secondOctet <= range.high);
|
|
67
67
|
}
|
|
68
|
-
// Loopback, unique-local fc00::/7, then link-local fe80::/10.
|
|
69
|
-
return hostname
|
|
68
|
+
// Loopback, unique-local fc00::/7, then link-local fe80::/10. Only an address has a colon: fd.example.com is a name.
|
|
69
|
+
return hostname.includes(':') && /^(::1$|f[cd]|fe[89ab])/.test(hostname);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* Whether to insist on TLS for a connection string.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubicecho/server-kit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "The server code every cubicecho GraphQL backend shares: database boot, id columns and the checks that keep a schema to the standard.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Benjamin Van Treese",
|