mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
Merge pull request #373 from Mughur/uptodate
BUGFIX: new servers check reserved names properly
This commit is contained in:
commit
79eca93ade
@ -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