implement TCP server, reimplement maxConnections except it now kicks the oldest connection

This commit is contained in:
Elijah R
2024-05-27 00:06:05 -04:00
parent 7053973205
commit 8add016b60
7 changed files with 115 additions and 6 deletions

View File

@@ -6,8 +6,12 @@ export default interface IConfig {
proxyAllowedIps: string[];
origin: boolean;
originAllowedDomains: string[];
maxConnections: number;
};
tcp: {
enabled: boolean;
host: string;
port: number;
}
auth: {
enabled: boolean;
apiEndpoint: string;
@@ -31,6 +35,7 @@ export default interface IConfig {
node: string;
displayname: string;
motd: string;
maxConnections: number;
bancmd: string | string[];
moderatorEnabled: boolean;
usernameblacklist: string[];