Commit graph

593 commits

Author SHA1 Message Date
schlagmichdoch
d99926f657 fix reconnection _onChannelClosed() 2023-01-06 16:05:17 +01:00
schlagmichdoch
8b8c887458 only reopen connection if it exists 2023-01-06 15:49:30 +01:00
schlagmichdoch
7b84154e3f fix this._isCaller variable typo 2023-01-06 15:48:20 +01:00
schlagmichdoch
6268ac7132 only reopen connection if it exists 2023-01-06 15:46:51 +01:00
schlagmichdoch
add1304e70 close p2p connection for all devices on disconnect 2023-01-06 15:22:41 +01:00
schlagmichdoch
7980e1a6fc fix wrong variable name on connection closing 2023-01-06 15:21:35 +01:00
schlagmichdoch
98a6f63799 remove notification for new displayName as peerId and display name is persistent again 2023-01-06 15:09:01 +01:00
schlagmichdoch
621c525d11 readd persistent peerId via sessionStorage 2022-12-31 18:52:18 +01:00
schlagmichdoch
8dc0f1cb0c stabilize connection 2022-12-31 18:52:18 +01:00
schlagmichdoch
6feeb6d4d9 potential fix for reconnect function 2022-12-31 18:52:17 +01:00
schlagmichdoch
0b45bdfd84 potential fix for reconnect function 2022-12-31 18:52:17 +01:00
schlagmichdoch
0436a2185a fix animation function if called multiple times 2022-12-31 18:52:17 +01:00
schlagmichdoch
651047cfa8 clear peers on page hide 2022-12-31 18:52:16 +01:00
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