Commit graph

53 commits

Author SHA1 Message Date
schlagmichdoch
750f54301d Conform the use of docker images by implementing the use of environment variables for all options available to Docker images and start node on docker run automatically. 2023-10-28 03:46:31 +02:00
schlagmichdoch
e807c3959a fix #157: catch EADDRINUSE to prevent endless restarts if the port is already in use 2023-09-19 17:53:21 +02:00
schlagmichdoch
d77ccdf233 fix TypeError 2023-09-19 17:50:16 +02:00
schlagmichdoch
8d2584fa69 implement temporary public rooms, tidy up index.js, rework UI dialogs and change colors slightly 2023-09-14 15:44:28 +02:00
schlagmichdoch
6679ef7529 fix keepAliveTimers not correctly cleared on reconnect 2023-09-13 18:33:17 +02:00
schlagmichdoch
26bf4d6dc3 ensure that otherPeers never receive peer-left after peer-joined on reconnect by leaving room before rejoining it 2023-06-01 01:49:07 +02:00
schlagmichdoch
3e2368c0c9 stabilize connection on reconnect by terminating websocket only on timeout and not always when peer leaves its ip room 2023-06-01 01:26:53 +02:00
schlagmichdoch
b106d90b64 Fix ReferenceError: ipv6_lcl is not defined 2023-05-23 02:43:17 +02:00
luckman212
32e909b8c2
fixes for https://github.com/schlagmichdoch/PairDrop/issues/69
(squashed, docs updated, IPV6_LOCALIZE input validation)
2023-05-19 12:18:20 -04:00
schlagmichdoch
ba20c72026 fix error on empty roomSecrets 2023-05-12 01:16:37 +02:00
schlagmichdoch
347f9b87c0 fix check whether peer is same browser 2023-05-12 01:16:37 +02:00
schlagmichdoch
ae9909f596 fix notification "Key null invalidated" on cancel device pairing 2023-05-11 19:56:47 +02:00
schlagmichdoch
de0afce4ea
Merge pull request #107 from schlagmichdoch/add_auto_accept
Add auto accept functionality via Edit Paired Devices Dialog + implement pair secret regeneration functionality
2023-05-11 19:21:26 +02:00
schlagmichdoch
8d640be3a2 increase roomSecret length to 264 chars and implement roomSecret regeneration functionality 2023-05-10 21:59:45 +02:00
schlagmichdoch
241ea4f988 implement auto_accept (#91) and manual unpairing via new Edit Paired Devices Dialog and a BrowserTabsConnector 2023-05-10 21:59:43 +02:00
schlagmichdoch
f39bfedf98 use sha3-512 hash instead of cyrb53 to authenticate peerIds on reconnect 2023-05-04 17:34:33 +02:00
schlagmichdoch
5a363e90dd add debug mode to enable debugging auto discovery 2023-04-24 17:00:03 +02:00
schlagmichdoch
d0046e83cb remove openrelayproject from rtc_config 2023-04-17 15:24:31 +02:00
schlagmichdoch
edf2ab5eb3 revert some changes to regain stability 2023-03-06 03:47:24 +01:00
schlagmichdoch
1bc23dc4b3 fix read rtcConfig.json must be parsed as JSON.. 2023-03-06 00:16:33 +01:00
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
Renamed from server/index.js (Browse further)