pal-explorer-cli 0.4.3 → 0.4.4

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.md CHANGED
@@ -176,7 +176,7 @@ REST API + WebSocket for real-time transfer monitoring, chat, and Pro/billing ma
176
176
  | `storage_path` | `./downloads` | Default download directory |
177
177
  | `max_connections` | `50` | Max P2P connections |
178
178
  | `bandwidth_cap` | `0` | Upload cap in KB/s (0 = unlimited) |
179
- | `discovery_servers` | `http://localhost:3000` | Discovery server URLs (comma-separated) |
179
+ | `discovery_servers` | `https://discovery.palexplorer.com` | Discovery server URLs (comma-separated) |
180
180
  | `announce_interval` | -- | DHT announce interval in seconds |
181
181
 
182
182
  Config file location: `~/.config/palexplorer-cli/config.json`
@@ -2,7 +2,7 @@ import chalk from 'chalk';
2
2
  import config from '../utils/config.js';
3
3
  import { getIdentity } from '../core/identity.js';
4
4
 
5
- const DISCOVERY_URL = process.env.PAL_DISCOVERY_URL || config.get('discoveryUrl') || 'http://localhost:3000';
5
+ const DISCOVERY_URL = process.env.PAL_DISCOVERY_URL || config.get('discoveryUrl') || 'https://discovery.palexplorer.com';
6
6
 
7
7
  export default function apiKeysCommand(program) {
8
8
  const cmd = program
@@ -3,7 +3,7 @@ import config from '../utils/config.js';
3
3
  import { getIdentity } from '../core/identity.js';
4
4
  import { listShares, getShareKey } from '../core/shares.js';
5
5
 
6
- const DISCOVERY_URL = process.env.PAL_DISCOVERY_URL || config.get('discoveryUrl') || 'http://localhost:3000';
6
+ const DISCOVERY_URL = process.env.PAL_DISCOVERY_URL || config.get('discoveryUrl') || 'https://discovery.palexplorer.com';
7
7
 
8
8
  export default function shareLinkCommand(program) {
9
9
  const cmd = program
@@ -318,7 +318,7 @@ export function startWebServer(port, torrentClient, { bindAddress = '127.0.0.1'
318
318
  const identity = config.get('identity');
319
319
  if (!identity?.handle) return res.status(400).json({ error: 'No handle registered' });
320
320
 
321
- const discoveryUrl = process.env.PAL_DISCOVERY_URL || config.get('discoveryUrl') || 'http://localhost:3000';
321
+ const discoveryUrl = process.env.PAL_DISCOVERY_URL || config.get('discoveryUrl') || 'https://discovery.palexplorer.com';
322
322
  const timestamp = Date.now();
323
323
 
324
324
  try {
@@ -599,7 +599,7 @@ export function startWebServer(port, torrentClient, { bindAddress = '127.0.0.1'
599
599
  const identity = config.get('identity');
600
600
  if (!identity?.handle) return res.status(400).json({ error: 'No handle registered' });
601
601
 
602
- const discoveryUrl = process.env.PAL_DISCOVERY_URL || config.get('discoveryUrl') || 'http://localhost:3000';
602
+ const discoveryUrl = process.env.PAL_DISCOVERY_URL || config.get('discoveryUrl') || 'https://discovery.palexplorer.com';
603
603
  const timestamp = Date.now();
604
604
 
605
605
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pal-explorer-cli",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "P2P encrypted file sharing CLI — share files directly with friends, not with the cloud",
5
5
  "main": "bin/pal.js",
6
6
  "bin": {