cc-viewer 1.6.83 → 1.6.84
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/lib/proxy-env.js +3 -1
- package/package.json +1 -1
- package/server.js +7 -5
package/lib/proxy-env.js
CHANGED
|
@@ -15,7 +15,9 @@ export function setupProxyEnv() {
|
|
|
15
15
|
if (!httpProxy && !httpsProxy) return;
|
|
16
16
|
|
|
17
17
|
setGlobalDispatcher(new EnvHttpProxyAgent({ httpProxy, httpsProxy, noProxy }));
|
|
18
|
-
|
|
18
|
+
if (process.env.CCV_DEBUG) {
|
|
19
|
+
console.error(`[CC Viewer] HTTP proxy: http=${httpProxy || '(none)'}, https=${httpsProxy || '(none)'}${noProxy ? `, no_proxy=${noProxy}` : ''}`);
|
|
20
|
+
}
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
setupProxyEnv();
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -2315,11 +2315,13 @@ export async function startViewer() {
|
|
|
2315
2315
|
server = currentServer;
|
|
2316
2316
|
actualPort = port;
|
|
2317
2317
|
const url = `${serverProtocol}://127.0.0.1:${port}`;
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2318
|
+
if (!isCliMode) {
|
|
2319
|
+
console.error(t('server.started'));
|
|
2320
|
+
console.error(t('server.startedLocal', { protocol: serverProtocol, port }));
|
|
2321
|
+
const _ips = getAllLocalIps();
|
|
2322
|
+
for (const _ip of _ips) {
|
|
2323
|
+
console.error(t('server.startedNetwork', { protocol: serverProtocol, ip: _ip, port, token: ACCESS_TOKEN }));
|
|
2324
|
+
}
|
|
2323
2325
|
}
|
|
2324
2326
|
// v2.0.69 之前的版本会清空控制台,自动打开浏览器确保用户能看到界面
|
|
2325
2327
|
try {
|