Commit graph

630 commits

Author SHA1 Message Date
schlagmichdoch
59671a751b remove reconnect function 2022-12-31 18:52:16 +01:00
schlagmichdoch
1b7aced340 remove forceDisconnect() and add change name notification 2022-12-30 22:55:48 +01:00
schlagmichdoch
cb86e96ffc copy on CMD + C / CTRL + C 2022-12-30 20:34:54 +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
schlagmichdoch
009fcd7745 close About Snapdrop page on Escape Keydown 2022-12-30 17:09:15 +01:00
schlagmichdoch
a7a91df558 fix force disconnect function 2022-12-24 04:29:47 +01:00
schlagmichdoch
800cf1712c restart animation when last peer leaves 2022-12-24 04:29:16 +01:00
schlagmichdoch
51542e9dce npm start executes node index.js public 2022-12-23 05:39:16 +01:00
Bellisario
aa38ae2a28 Add rate limits 2022-12-23 05:37:56 +01:00
Giorgio Bellisario
b3dff8a864 Add MIT License 2022-12-23 05:36:38 +01:00
blennster
cc43e3c3e9 add dockerfile 2022-12-23 05:35:13 +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
schlagmichdoch
72f3bb0e7c fix small bugs - working version with turn server of relay.metered.ca 2022-12-23 03:28:39 +01:00
schlagmichdoch
ecc29b39d7 Merge remote-tracking branch 'fork/patch-2' into add_device_pairing 2022-12-23 00:19:47 +01:00
schlagmichdoch
f9a22e5ae4 Merge remote-tracking branch 'fork/customise_server_port' into add_device_pairing 2022-12-23 00:05:00 +01:00
schlagmichdoch
89cba33ff2 Merge remote-tracking branch 'fork/master' into add_device_pairing 2022-12-22 23:57:01 +01:00
schlagmichdoch
dced87633b Merge remote-tracking branch 'fork/patch-1' into add_device_pairing 2022-12-22 23:55:07 +01:00
schlagmichdoch
6fe348ab4b Merge remote-tracking branch 'fork/patch-1' into add_device_pairing 2022-12-22 23:52:44 +01:00
schlagmichdoch
39ee016875 Merge remote-tracking branch 'fork/fix-list-self-in-peers' into add_device_pairing 2022-12-22 23:51:22 +01:00
schlagmichdoch
e5a2c6326e fix problem of multiple creation of PeerUI when peer has joined mutliple times without successfully creating a p2p connection 2022-12-22 23:06:43 +01:00
schlagmichdoch
75846f4de1 Merge branch 'add_message_transfer_completed_notification' into add_device_pairing 2022-12-22 20:43:38 +01:00
schlagmichdoch
fdb0bbf098 Merge branch 'show_peer_on_channel_open' into add_device_pairing
# Conflicts:
#	client/scripts/network.js
2022-12-22 20:28:45 +01:00
schlagmichdoch
63c625fc67 Merge branch 'fix_is_caller_variable' into add_device_pairing 2022-12-22 20:26:11 +01:00
schlagmichdoch
3688ed0c98 put all devices on the same network as the server into the same room to make it possible to run snapdrop on the local network 2022-12-22 01:05:49 +01:00
schlagmichdoch
28336eebf0 remove X-Forward-for header from nginx default.conf to be able to run Snapdrop with docker correctly. Add how-to and configuration examples for nginx and apache to documentation. 2022-12-22 01:03:24 +01:00
Leonardo Scoppitto
0cd73f10ef
Check for CF-Connecting-IP and decreased timeout
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).
2022-11-24 13:51:39 +01:00
RobinLinus
f769a76605
Merge pull request #538 from SUNWUYUAN/patch-1
Update faq.md
2022-11-18 15:36:15 +01:00
SUNWUYUAN
50b025acfc
Update faq.md
A new self managed snapdrop, which I modified to suit Chinese
2022-11-18 20:21:48 +08:00
schlagmichdoch
640266f660 only show Peer when p2p channel is opened to prevent sending without open channel -> Improve stability 2022-11-17 18:24:01 +01:00
schlagmichdoch
10276b472d implement paste mode and ui for files and text for multiple peers 2022-11-09 17:43:27 +01:00
schlagmichdoch
d101f90ea2 fix this._isCaller variable typo 2022-11-09 01:44:17 +01:00
RobinLinus
89b0bcc20c
Update README.md 2022-11-08 19:14:55 +01:00
RobinLinus
d1144670ef
Update FUNDING.yml 2022-11-08 19:14:25 +01:00
schlagmichdoch
c1575c8b85 add notification when message transfer is completed analogous to completed file transfer 2022-11-08 15:43:24 +01:00
MWY001
cb84bef2c2 Should not notify peer the existence of itself. 2022-11-05 00:35:55 +08:00
RobinLinus
cc9c2bf088
Merge pull request #520 from MahmoudAboelazm/fix_transferring_error
Fix transferring issue
2022-10-24 23:41:35 +02:00
MahmoudAboelazm
09da05e700 Fix transferring issue 2022-10-23 06:17:39 +02:00
RobinLinus
15f28e4a77
Merge pull request #519 from MahmoudAboelazm/fix_FileReader_error
fix error: Failed to execute 'readAsArrayBuffer' on 'FileReader': The…
2022-10-21 18:59:26 +02:00
MahmoudAboelazm
7bb4c1916a fix error: Failed to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy reading Blobs 2022-10-21 02:54:14 +02:00
RobinLinus
2e0619fbba
Add error handler to ws connection 2022-10-13 15:20:38 +02:00
RobinLinus
070f6a954f
Update FUNDING.yml 2022-10-13 01:13:56 +02:00
RobinLinus
683470613c
Update faq.md 2022-10-12 02:39:10 +02:00
RobinLinus
112bed3730
Merge pull request #497 from Haocen/patch-3
QoL: Native notification improvements
2022-10-05 16:53:22 +02:00
Haocen
9543c47900
Use Events class for handling visibilitychange 2022-09-13 08:34:44 -04:00
Haocen
29bd778757
Implement off method for Events class 2022-09-13 08:33:03 -04:00
Haocen
529be8c55e
QoL: Native notification improvements
Only send native notification when document is not visible, clear notifications when document become visible.
2022-09-13 01:35:05 -04:00
dacapoday
a6bf4857dd
fix WSPeer
whether WSPeer inherits from Peer as well as RTCPeer?
2022-06-09 11:26:11 +08:00