querysub 0.317.0 → 0.318.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
|