From 752efeece8dde2cad5b0da7797bad0546fc25a68 Mon Sep 17 00:00:00 2001 From: JOLIMAITRE Matthieu Date: Sat, 3 Feb 2024 23:39:18 +0100 Subject: [PATCH] fix container name not set --- instance/src/lib.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/instance/src/lib.ts b/instance/src/lib.ts index 9d9d876..7e172c4 100644 --- a/instance/src/lib.ts +++ b/instance/src/lib.ts @@ -87,8 +87,8 @@ export class Runner { } private start_process() { - const paths = container_paths(name); - const command = container_command(name, paths.root, { + const paths = container_paths(this.name); + const command = container_command(this.name, paths.root, { boot: true, veth: true, redirections: this.config.redirections, @@ -99,8 +99,8 @@ export class Runner { syscall_filter: ["add_key", "keyctl", "bpf"], }); this.loop = loop_process(command, { - on_start: () => log("container", name, "started"), - on_stop: () => log("container", name, "stopped"), + on_start: () => log("container", this.name, "started"), + on_stop: () => log("container", this.name, "stopped"), }); } @@ -109,7 +109,7 @@ export class Runner { } async update_proxies() { - const paths = container_paths(name); + const paths = container_paths(this.name); await Deno.mkdir(paths.sites, { recursive: true }); const sites = new Set(); for (const redir of this.config.redirections) {