mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 15:17:48 +02:00
API: Make ns.cloud.purchaseServer() and ns.cloud.deleteServer() use hostname as provided (#2560)
This commit is contained in:
@@ -40,7 +40,7 @@ export enum ServerOwnershipType {
|
||||
* does not have a duplicate hostname/ip.
|
||||
*/
|
||||
export function safelyCreateUniqueServer(params: StandardServerConstructorParams): Server {
|
||||
let hostname: string = params.hostname.replace(/ /g, `-`);
|
||||
let hostname = params.hostname;
|
||||
|
||||
if (params.ip != null && ipExists(params.ip)) {
|
||||
params.ip = createUniqueRandomIp();
|
||||
|
||||
Reference in New Issue
Block a user