braidfs 0.0.67 → 0.0.70

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -132,7 +132,7 @@ async function main() {
132
132
 
133
133
  if (req.url === '/favicon.ico') return
134
134
 
135
- if (req.socket.remoteAddress !== '127.0.0.1' && req.socket.remoteAddress !== '::1') {
135
+ if (!['::ffff:127.0.0.1', '127.0.0.1', '::1'].includes(req.socket.remoteAddress)) {
136
136
  res.writeHead(403, { 'Content-Type': 'text/plain' })
137
137
  return res.end('Access denied: only accessible from localhost')
138
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braidfs",
3
- "version": "0.0.67",
3
+ "version": "0.0.70",
4
4
  "description": "braid technology synchronizing files and webpages",
5
5
  "author": "Braid Working Group",
6
6
  "repository": "braid-org/braidfs",