@lethevimlet/sshift 1.3.1 → 1.3.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": "@lethevimlet/sshift",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Web-based SSH + SFTP terminal client with tabs and bookmarks",
5
5
  "main": "src/server/index.js",
6
6
  "bin": {
@@ -241,10 +241,6 @@ function registerSystemEndpoints(app, io) {
241
241
  // API: Trigger update
242
242
  app.post('/api/update', async (req, res) => {
243
243
  try {
244
- const isLocalhost = req.hostname === 'localhost' || req.hostname === '127.0.0.1' || req.hostname === '::1';
245
- if (!isLocalhost && !req.headers.authorization && !req.query.token) {
246
- return res.status(403).json({ error: 'Remote update requires authentication. Set a password or use localhost.' });
247
- }
248
244
 
249
245
  const { spawn, execSync } = require('child_process');
250
246
  const platform = process.platform;