Implement basic proxy to connect to stopped instances

This commit is contained in:
Danielv123 committed 2026-01-26 00:11:17 +01:00
1 parent 9bf817e665
commit fc0279ad11
3 files changed
+165 -3

No files matched your search

+8
View File
@@ -407,6 +407,7 @@ export interface InstanceConfigFields {
"factorio.executable_path": string | null;
"factorio.shutdown_timeout": number;
"factorio.game_port": number | null;
"factorio.proxy_port": number | null;
"factorio.host_assigned_game_port": number | null;
"factorio.rcon_port": number | null;
"factorio.rcon_password": string | null;
@@ -502,6 +503,13 @@ export class InstanceConfig extends classes.Config<InstanceConfigFields> {
type: "number",
optional: true,
},
"factorio.proxy_port": {
description:
"UDP port to accept client connections on. When set, the host will proxy traffic to " +
"the instance game port and start the instance on first packet.",
type: "number",
optional: true,
},
"factorio.host_assigned_game_port": {
access: ["host"],
type: "number",