mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
BUGFIX: new servers check reserved names properly
This commit is contained in:
parent
af0ed1dbb0
commit
d55395491c
@ -59,7 +59,7 @@ export class Server extends BaseServer {
|
|||||||
super(params);
|
super(params);
|
||||||
|
|
||||||
// "hacknet-node-X" hostnames are reserved for Hacknet Servers
|
// "hacknet-node-X" hostnames are reserved for Hacknet Servers
|
||||||
if (this.hostname.startsWith("hacknet-node-" || "hacknet-server-")) {
|
if (this.hostname.startsWith("hacknet-node-") || this.hostname.startsWith("hacknet-server-")) {
|
||||||
this.hostname = createRandomString(10);
|
this.hostname = createRandomString(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user