Skip to content

Commit

Permalink
refactor: 修改文字提示
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Jan 12, 2025
1 parent 6e8e9d1 commit b30433b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,15 +628,14 @@ export class Server {
// console.error(err);
// });

const tip = `Cluster ${cluster.clusterId} is now ready at ${cluster.endpoint}. If this is your first time enabling this cluster or the ${enableData.byoc ? "domain's record" : (!enableData.byoc && enableData.host ? `CNAME destination (${enableData.host})` : `IP address (${address}:${enableData.port})`)} has changed, please allow a few minutes for the DNS records to update and propagate.`;
const tip = `Cluster ${cluster.clusterId} will be enabled on \"${cluster.endpoint}\" soon. If this is your first time enabling this cluster or the ${enableData.byoc ? "domain's record" : (!enableData.byoc && enableData.host ? `CNAME destination (${enableData.host})` : `IP address (${address}:${enableData.port})`)} has changed, please allow a few minutes for the DNS records to update and propagate.`;

socket.send(tip);
if (Config.instance.server.noWarden || cluster.noWardenMode) {
socket.send(tip);
cluster.doOnline(this.files, socket, true);
this.db.update(cluster);
return true;
}
socket.send(tip);

const randomFileCount = 5;
const randomFiles = Utilities.getRandomElements(this.fileList.getAvailableFiles(cluster), randomFileCount);
Expand Down

0 comments on commit b30433b

Please sign in to comment.