diff --git a/src/commands/target.ts b/src/commands/target.ts index 84826d6..cb4812b 100644 --- a/src/commands/target.ts +++ b/src/commands/target.ts @@ -25,6 +25,10 @@ export default async function handle(command: Command) { c.log("No target specified"); c.log("Possible targets: "); possibleTargets.forEach(x => c.trail(`${x.id} (UID: ${x.uid})`)); + if(!possibleTargets[1] && possibleTargets[0]){ + c.log(`Auto target the only session ${possibleTargets[0].uid}`); + Interface.target = possibleTargets[0].session; + } return; } diff --git a/src/util/Config.ts b/src/util/Config.ts index 66d8652..2eb2548 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts @@ -7,7 +7,7 @@ const DEFAULT_CONFIG = { VERBOSE_LEVEL: 1, // MongoDB - MONGO_URI: "mongodb://localhost:27017/crepesr", + MONGO_URI: "mongodb://0.0.0.0:27017/crepesr", // HTTP HTTP: { @@ -82,4 +82,4 @@ export default class Config { } = Config.config.GAMESERVER; private constructor() { } -} \ No newline at end of file +}