split hacknet node from server in name, with SF9 (#327)

This commit is contained in:
Tyasuh
2023-01-16 15:59:33 -05:00
committed by GitHub
parent 80061b1f81
commit ac8ea6b5ef
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export class Server extends BaseServer {
super(params);
// "hacknet-node-X" hostnames are reserved for Hacknet Servers
if (this.hostname.startsWith("hacknet-node-")) {
if (this.hostname.startsWith("hacknet-node-" || "hacknet-server-")) {
this.hostname = createRandomString(10);
}