fix(osm): force IPv4 resolution in proxy to bypass docker IPv6 dropouts
This commit is contained in:
1 parent
bec1080cb8
commit
ce45f2d4b6
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "worldwideview",
|
||||
"version": "1.11.4",
|
||||
"version": "1.11.5",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"setup": "node scripts/setup.mjs",
|
||||
|
||||
@@ -15,6 +15,7 @@ async function tryMirror(urlStr: string, query: string, timeoutMs: number) {
|
||||
|
||||
const req = https.request(url, {
|
||||
method: "POST",
|
||||
family: 4, // Force IPv4 to avoid Docker IPv6 dropout
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
"Content-Length": Buffer.byteLength(bodyStr),
|
||||
|
||||
Reference in new issue
Block a user