Mirror of https://github.com/schlagmichdoch/PairDrop
and own changes
0cd73f10ef
When hosting Snapdrop behind Cloudflare, X-Forwarded-For is useless. Furthermore, I'm hosting my installation behind another internal proxy, so, in the end, X-Forwarder-For is set to the internal proxy's IP for all the peer, which can see each other regardless being on different networks. To fix this I made _setIP check if the header "cf-connecting-ip" exists, then sets the IP accordingly. Lastly, when a peer changes network (e.g. a phone switches from wifi to mobile data), the function _leaveRoom is not called and the peer stays visible to others connected to the same room for a whole minute: I adjusted the timeout to what I think is a more reasonable value (500ms, so _leaveRoom is called after 1s). |
||
---|---|---|
.github | ||
client | ||
docker | ||
docs | ||
server | ||
.gitignore | ||
docker-compose.yml | ||
LICENSE | ||
README.md |
Snapdrop
Snapdrop: local file sharing in your browser. Inspired by Apple's Airdrop.
Snapdrop is built with the following awesome technologies:
- Vanilla HTML5 / ES6 / CSS3 frontend
- WebRTC / WebSockets
- NodeJS backend
- Progressive Web App
Have any questions? Read our FAQ.
You can host your own instance with Docker.
Support the Snapdrop Community
Snapdrop is free. Still, we have to pay for the server. If you want to contribute, please use PayPal:
or Bitcoin:
Alternatively, you can become a Github Sponsor.
Thanks a lot for supporting free and open software!