fix: something

This commit is contained in:
hibna
2026-08-02 20:26:54 +03:00
parent 5215560ede
commit 11924416a9
38 changed files with 2198 additions and 466 deletions
+40 -10
View File
@@ -64,17 +64,47 @@ interface AdditionalPortRequirement {
}
function additionalPortRequirementsForGame(gameSlug: string): AdditionalPortRequirement[] {
if (gameSlug.trim().toLowerCase() !== 'satisfactory') return [];
const slug = gameSlug.trim().toLowerCase();
return [
{
key: 'satisfactory-messaging',
label: 'Messaging Port',
defaultPort: 8888,
protocols: ['tcp'],
description: 'Required by the Satisfactory server messaging API.',
},
];
if (slug === 'satisfactory') {
return [
{
key: 'satisfactory-messaging',
label: 'Messaging Port',
defaultPort: 8888,
protocols: ['tcp'],
description: 'Required by the Satisfactory server messaging API.',
},
];
}
if (slug === 'ark-se') {
return [
{
key: 'ark-raw-udp',
label: 'Raw UDP Socket Port',
defaultPort: 7778,
protocols: ['udp'],
description: 'ARK opens a second UDP socket, normally the game port + 1.',
},
{
key: 'ark-query',
label: 'Steam Query Port',
defaultPort: 27015,
protocols: ['udp'],
description: 'Used by the Steam server browser to list the server.',
},
{
key: 'ark-rcon',
label: 'RCON Port',
defaultPort: 27020,
protocols: ['tcp'],
description: 'Console commands and the player list are sent over RCON.',
},
];
}
return [];
}
export function CreateServerPage() {