@miraj181/ipingyou 2.1.0 → 2.1.2

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": "@miraj181/ipingyou",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "SecureLink-CLI — Secure peer-to-peer remote access via SSH & Cloudflare Tunnels",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
@@ -47,7 +47,7 @@
47
47
  "chalk": "^5.3.0",
48
48
  "commander": "^14.0.3",
49
49
  "execa": "^9.5.2",
50
- "inquirer": "^13.4.3",
50
+ "inquirer": "^12.11.1",
51
51
  "nanoid": "^5.0.9",
52
52
  "open": "^11.0.0",
53
53
  "ora": "^9.4.0",
@@ -55,7 +55,7 @@
55
55
  "ws": "^8.20.1",
56
56
  "express": "^5.2.1",
57
57
  "express-rate-limit": "^8.5.2",
58
- "helmet": "^7.1.0"
58
+ "helmet": "^8.2.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "nodemon": "^3.1.4"
package/src/modes/host.js CHANGED
@@ -624,7 +624,7 @@ async function hostDashboard(uid, tunnelUrl, password, serviceConfig, tunnelProc
624
624
  switch (action) {
625
625
  case 'approvals': {
626
626
  try {
627
- const data = await fetchApprovalRequests(BROKER_URL, uid);
627
+ const data = await fetchApprovalRequests(BROKER_URL, uid, hostToken);
628
628
  const pending = (data.approvals || []).filter(item => item.status === 'pending');
629
629
  if (pending.length === 0) {
630
630
  console.log(chalk.yellow(' No pending approval requests.'));
@@ -656,7 +656,7 @@ async function hostDashboard(uid, tunnelUrl, password, serviceConfig, tunnelProc
656
656
  ],
657
657
  }]);
658
658
  if (decision !== 'skip') {
659
- await decideApprovalRequest(BROKER_URL, uid, request.id, decision);
659
+ await decideApprovalRequest(BROKER_URL, uid, request.id, decision, hostToken);
660
660
  recordEvent('approval_decision', { uid, requestId: request.id, decision, username: details.username });
661
661
  }
662
662
  }
@@ -747,7 +747,9 @@ async function hostDashboard(uid, tunnelUrl, password, serviceConfig, tunnelProc
747
747
  case 'show': {
748
748
  const spinner = createSpinner('Fetching secure client telemetry...', networkSpinner).start();
749
749
  try {
750
- const res = await fetch(`${BROKER_URL}/clients/${uid}`);
750
+ const res = await fetch(`${BROKER_URL}/clients/${uid}`, {
751
+ headers: hostToken ? { 'x-host-token': hostToken } : {}
752
+ });
751
753
  if (!res.ok) throw new Error('Failed to fetch from broker');
752
754
  const data = await res.json();
753
755