chattransfer 2.0.10 → 2.0.12

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.
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" href="/assets/logo-DQUxWwh1.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>ChatTransfer</title>
8
- <script type="module" crossorigin src="/assets/index-DTsuxum5.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-Dw5X-Gok.css">
8
+ <script type="module" crossorigin src="/assets/index-B70USaaW.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-Bg5fD0DP.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="app"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chattransfer",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "LAN instant messaging and file transfer tool",
5
5
  "main": "server/index.js",
6
6
  "engines": {
@@ -46,7 +46,7 @@ function getHelpText() {
46
46
  '',
47
47
  'Options:',
48
48
  ' --host <host> Listen host (default: 0.0.0.0)',
49
- ' --port <port> Listen port (default: 55555)',
49
+ ' --port <port> Listen port (default: 55556)',
50
50
  ' --data-dir <path> Runtime data directory',
51
51
  ' --public-url <url> Public URL used by QR codes and links',
52
52
  ' --no-browser Do not open the local browser',
package/server/index.js CHANGED
@@ -15,7 +15,7 @@ const {
15
15
  } = require('./utils/runtime-paths');
16
16
  const { resolveStartOptions } = require('./utils/runtime-options');
17
17
 
18
- const DEFAULT_PORT = 55555;
18
+ const DEFAULT_PORT = 55556;
19
19
  const MAX_RETRY = 3;
20
20
  const clientIpAddress = getIPAddress() || '127.0.0.1';
21
21
  const pkg = require('../package.json');
@@ -1,7 +1,7 @@
1
1
  const path = require('path');
2
2
 
3
3
  const DEFAULT_HOST = '0.0.0.0';
4
- const DEFAULT_PORT = 55555;
4
+ const DEFAULT_PORT = 55556;
5
5
 
6
6
  function isTruthy(value) {
7
7
  return ['1', 'true', 'yes', 'on'].includes(String(value).toLowerCase());
@@ -70,7 +70,9 @@ function resolveStartOptions(overrides = {}, env = process.env) {
70
70
  return {
71
71
  host: host.trim(),
72
72
  port,
73
- explicitPort: overrides.port !== undefined || env.CHATTRANSFER_PORT !== undefined,
73
+ explicitPort: overrides.explicitPort ?? (
74
+ overrides.port !== undefined || env.CHATTRANSFER_PORT !== undefined
75
+ ),
74
76
  dataDir: dataDir ? path.resolve(String(dataDir)) : null,
75
77
  publicUrl,
76
78
  openBrowser