Commit Graph

33 Commits

Author SHA1 Message Date
schlagmichdoch cc78b34d2e Revert making peerId ephemeral to prevent duplication of shown peers on reconnect. Implement peerIdHash to prevent rogue users from overtaking peerIds 2023-03-06 00:07:21 +01:00
schlagmichdoch b7e7fd1b68 Merge branch 'master' into enable_renaming 2023-03-04 20:52:10 +01:00
schlagmichdoch c0a4224a59 merge master into branch 2023-03-03 18:01:24 +01:00
schlagmichdoch 002b31a113 merge master into branch 2023-03-03 17:40:10 +01:00
schlagmichdoch cf715b2872 stability on reconnect: prevent "peer-left" signal after "peer-joined" by leaving rooms first before reentering them, clear _keepAlive timeout before joining ip room and not manually terminating sockets 2023-03-03 13:10:14 +01:00
schlagmichdoch d56ee87437 - Enable renaming of own display name permanently via UI
- Make peerId completely ephemeral
- Stabilize RTCConnection by closing connections cleanly
2023-03-01 21:38:36 +01:00
schlagmichdoch 66359da2ca get rtcConfig dynamically from the server 2023-02-24 18:08:48 +01:00
schlagmichdoch 49e7281092 ensure correct client ip is used for rate limiting as described on the GitHub repo of 'express-rate-limit' 2023-02-14 21:51:42 +01:00
schlagmichdoch 58a32d43b3 implementing options to make PairDrop reachable on localhost only to prevent bypassing the proxy server on production 2023-02-14 02:43:15 +01:00
schlagmichdoch b933ef151a if devices are paired a second time, the old roomSecret is deleted upon saving the new one. 2023-02-11 00:52:37 +01:00
schlagmichdoch 414cc9aa57 if user actively disconnects from PairDrop server, disconnect all peer to peer connections immediately and do not wait for channels to close 2023-02-10 23:47:39 +01:00
schlagmichdoch 1eba7359d1 rolled back some changes to stabilize WebRTC connections 2023-02-10 23:41:04 +01:00
schlagmichdoch 616f6a6799 implement complete WSPeer as fallback if WebRTC is deactivated. Only ever use on self-hosted instances as clients need to trust the server! 2023-02-10 20:22:36 +01:00
schlagmichdoch 0d47bf176a Move ip prefix removal outside ipIsPrivate method. Remove 'net' dependency. 2023-02-04 18:06:07 +01:00
schlagmichdoch 67273bc418 Prevent rogue users from requesting multiple roomKeys 2023-01-22 17:43:54 +01:00
schlagmichdoch 785db26882 refactor "Pairdrop" to "PairDrop" 2023-01-17 10:51:19 +01:00
schlagmichdoch e1226aa044 stabilize wss connection by increasing timeout back to 60s 2023-01-17 10:09:44 +01:00
schlagmichdoch 9d33739f03 stabilize wss connection by increasing timeout to 5s 2023-01-17 02:24:11 +01:00
schlagmichdoch 57851902f9 make rate-limiting and auto-restart optional via flag and modify readme 2023-01-11 14:21:54 +01:00
schlagmichdoch fed9d17dc8 replace "snapdrop" with "pairdrop" and change links accordingly + add changes to faq and readme 2023-01-10 17:22:36 +01:00
schlagmichdoch e611ed13d0 fix _leaveAllSecretRooms(peer) and addRoomSecret(roomSecret) + leave rooms on disconnect 2023-01-10 13:55:32 +01:00
schlagmichdoch 3c07a4199b implement device pairing via 6-digit code and qr-code 2023-01-10 05:07:57 +01:00
schlagmichdoch 621c525d11 readd persistent peerId via sessionStorage 2022-12-31 18:52:18 +01:00
schlagmichdoch 59671a751b remove reconnect function 2022-12-31 18:52:16 +01:00
schlagmichdoch 4c40c3d011 Completely ephemeral Peer ID
cherry picked from commit 56ab2357a66797e56db1dfb489eda32150f8d3a5 on willstott101/snapdrop
2022-12-30 17:49:14 +01:00
schlagmichdoch b242a5fd01 fix automatic restart on error 2022-12-30 17:31:52 +01:00
schlagmichdoch b691af71c0 add dependency-free node restart function as suggested by @KaKi87 https://github.com/RobinLinus/snapdrop/issues/515#issuecomment-1365403786 2022-12-30 17:13:09 +01:00
Bellisario aa38ae2a28 Add rate limits 2022-12-23 05:37:56 +01:00
schlagmichdoch 7283ab2c49 cherry-pick commit from Bellisario 2022-12-23 05:33:36 +01:00
schlagmichdoch 947e088aeb move files for node only implementation 2022-12-23 05:32:34 +01:00
RobinLinus 663db5cbb3 Version 2 initial commit 2018-09-21 16:05:03 +02:00
Robin Linus f2a48823d1 Cleanup 2015-12-30 16:54:18 +01:00
Robin Linus bda1a15750 first working version 2015-12-26 13:33:16 +01:00