querysub 0.317.0 → 0.319.0
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/package.json
CHANGED
|
@@ -65,9 +65,6 @@ export async function getSNICerts(config: {
|
|
|
65
65
|
});
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
|
-
|
|
69
|
-
await publishEdgeDomain();
|
|
70
|
-
|
|
71
68
|
return certs;
|
|
72
69
|
}
|
|
73
70
|
|
|
@@ -137,6 +134,8 @@ export async function publishMachineARecords() {
|
|
|
137
134
|
let ipDomain = await getIPDomain();
|
|
138
135
|
await setRecord("A", ipDomain, ip);
|
|
139
136
|
|
|
137
|
+
await publishEdgeDomain();
|
|
138
|
+
|
|
140
139
|
return {
|
|
141
140
|
ip,
|
|
142
141
|
ipDomain,
|
|
@@ -230,7 +229,9 @@ async function publishEdgeDomain() {
|
|
|
230
229
|
console.log(magenta(`Switching from local development to production development (removing A record for 127.0.0.1, and using a real ip)`));
|
|
231
230
|
promises.push(deleteRecord("A", edgeDomain, "127.0.0.1"));
|
|
232
231
|
}
|
|
233
|
-
|
|
232
|
+
if (isBootstrapOnly()) {
|
|
233
|
+
promises.push(addRecord("A", edgeDomain, callerIP, "proxied"));
|
|
234
|
+
}
|
|
234
235
|
}
|
|
235
236
|
promises.push(addRecord("A", "127-0-0-1." + edgeDomain, "127.0.0.1"));
|
|
236
237
|
// Add records in parallel, so we can wait for DNS propagation in parallel
|
|
@@ -394,7 +394,11 @@ class TransactionLocker {
|
|
|
394
394
|
let pastTime = Date.now() - ARCHIVE_PROPAGATION_TIME * 10;
|
|
395
395
|
let veryBadFiles = newFiles.filter(x => x.createTime < pastTime);
|
|
396
396
|
if (veryBadFiles.length > 0) {
|
|
397
|
-
console.error(`Old files suddenly appeared. This isn't possible, if they are old, they should have appeared when they were created! This likely means that our getKeys() failed to actually read all of the files. This is bad and can result in us deleting seemingly broken files for missing a confirmation, when they in fact had a confirmation.`, {
|
|
397
|
+
console.error(`Old files suddenly appeared. This isn't possible, if they are old, they should have appeared when they were created! This likely means that our getKeys() failed to actually read all of the files. This is bad and can result in us deleting seemingly broken files for missing a confirmation, when they in fact had a confirmation.`, {
|
|
398
|
+
newlyAppearingOldFiles: veryBadFiles.map(x => x.file),
|
|
399
|
+
prevFiles: this.lastFilesRead.map(x => x.file),
|
|
400
|
+
newFiles: files.map(x => x.file),
|
|
401
|
+
});
|
|
398
402
|
}
|
|
399
403
|
}
|
|
400
404
|
this.lastFilesRead = files;
|