@oxiaom/adoremix 1.0.66 → 1.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxiaom/adoremix",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "description": "AdoreMix broadcast server - cross-platform installer, runner and service manager",
5
5
  "bin": {
6
6
  "adoremix": "./bin/adoremix.js"
package/src/cli.js CHANGED
@@ -541,7 +541,7 @@ function buildProgram() {
541
541
 
542
542
  const mp3srv = program
543
543
  .command('mp3server')
544
- .description('MP3Server 选装:TCP 分块推流 MP3 文件(端口 6665,docroot 与 nginx 共用),开机自启');
544
+ .description('MP3Server 选装:TCP 分块推流 MP3 文件(默认端口 6665、docroot=工作目录/etc/docroot;改端口/目录用 adoremix config set MP3Server.port|docroot 后 systemctl restart adoremix-mp3server)');
545
545
 
546
546
  mp3srv
547
547
  .command('install')
@@ -573,7 +573,7 @@ function buildProgram() {
573
573
 
574
574
  mp3srv
575
575
  .command('status')
576
- .description('检查 MP3Server 服务/端口/docroot 状态')
576
+ .description('检查 MP3Server 服务/端口/docroot 状态(端口与目录来自 config.ini [MP3Server])')
577
577
  .option('--workdir <path>')
578
578
  .action(async (opts) => {
579
579
  const mod = require('./mp3server');
@@ -116,6 +116,7 @@ function startServer(opts) {
116
116
  sock.on('close', () => { cleanup(); log(`[info] ${peer} 断开`); });
117
117
 
118
118
  const handleLine = (lineRaw) => {
119
+ if (closed) return;
119
120
  const line = lineRaw.trim();
120
121
  if (state === 'path') {
121
122
  const abs = validateRelPath(line, root);