Skip to content

Commit 7515be1

Browse files
committed
fix: manifest schema and aria2c command
1 parent 3da01c1 commit 7515be1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/select-os/rescource-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const resourceManifestSchema = z.object({
2121
bootstrap: z.record(architecturesEnum, z.string()),
2222
modelDir: z.string(),
2323
containerDir: z.string(),
24-
packageDir: z.string(),
24+
packageDir: z.string().optional(),
2525
})
2626

2727
export type ResourceManifestType = z.infer<typeof resourceManifestSchema>

lib/ssh/ssh-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export class MxaCtl {
293293
return
294294
}
295295

296-
this.execCommand('aria2c --enable-rpc --rpc-listen-port=6800', {
296+
this.execCommand('aria2c --enable-rpc --rpc-listen-all --rpc-listen-port=6800', {
297297
onStdout: (buf) => {
298298
if (buf.includes('listening on TCP port')) {
299299
resolve(this)

0 commit comments

Comments
 (0)