mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +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);
|
||||
|
||||
// "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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user