fix: 🐛 Pass the addr to CLI when canceling sessions (#3007)
This commit is contained in:
1 parent
dfd116bd56
commit
d2616acf36
1 file changed
+3
-1
@@ -75,12 +75,14 @@ class Session {
|
||||
this.#process.on('close', () => resolve());
|
||||
this.#process.on('error', (e) => reject(e));
|
||||
|
||||
const sanitizedToken = sanitizer.base62EscapeAndValidate(this.#token);
|
||||
// Cancel session before killing process
|
||||
const sanitizedToken = sanitizer.base62EscapeAndValidate(this.#token);
|
||||
const sanitizedAddr = sanitizer.urlValidate(this.#addr);
|
||||
const cancelSessionCommand = [
|
||||
'sessions',
|
||||
'cancel',
|
||||
`-id=${this.id}`,
|
||||
`-addr=${sanitizedAddr}`,
|
||||
'-token=env://BOUNDARY_TOKEN',
|
||||
];
|
||||
spawnSync(cancelSessionCommand, {
|
||||
|
||||
Reference in new issue
Block a user