chattransfer 2.0.10 → 2.0.11
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/README.ar.md +1 -1
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/bin/chattransfer.js +4 -1
- package/frontend/dist/assets/{browser-BqOeEQBb.js → browser-CjtO9Bzi.js} +1 -1
- package/frontend/dist/assets/{index-DTsuxum5.js → index-CiTzjW7h.js} +1 -1
- package/frontend/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/cli-options.js +1 -1
- package/server/index.js +1 -1
- package/server/utils/runtime-options.js +4 -2
package/frontend/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
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-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CiTzjW7h.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-Dw5X-Gok.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
package/server/cli-options.js
CHANGED
|
@@ -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:
|
|
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 =
|
|
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 =
|
|
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.
|
|
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
|