Skip to content

Commit 9c8539b

Browse files
committed
Comments, changes and fixes
1 parent 424c85c commit 9c8539b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/CoopConfig.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export class CoopConfig {
77
public useUPNP: boolean;
88
public useMessageWSUrlOverride: boolean;
99
public messageWSUrlOverride: string;
10+
/**
11+
* Forces players to use a password. FALSE IF USING SPT LAUNCHER!
12+
*/
1013
public checkPasswordOnLogin: boolean;
1114

1215
public static Instance: CoopConfig;
@@ -17,7 +20,10 @@ export class CoopConfig {
1720
this.useUPNP = true;
1821
this.useMessageWSUrlOverride = false;
1922
this.messageWSUrlOverride = '127.0.0.1:6969';
20-
this.checkPasswordOnLogin = false;
23+
24+
// This is up for debate. This forces players to use a password..
25+
// However, this breaks the SPT Launcher if a user wanted to use that
26+
this.checkPasswordOnLogin = true;
2127

2228
const configFilePath = path.join(__dirname, "..", "config");
2329
if(!fs.existsSync(configFilePath))

src/SITConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class SITConfig {
5252
[
5353
{
5454
url: "/SIT/Config",
55-
action: (url, info: any, sessionId, output) => {
55+
action: (url: string, info: any, sessionID: string, output: string): any => {
5656
console.log(SITConfig.Instance)
5757
output = JSON.stringify(SITConfig.Instance);
5858
return output;

0 commit comments

Comments
 (0)