Commit graph

555 commits

Author SHA1 Message Date
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
Victor Wads
b0115b9953 fix var name 2022-06-07 23:25:23 -03:00
Victor Wads
7645becb41 Adds Video and Audio preview 2022-06-05 14:45:18 -03:00
RobinLinus
a96dde25c0
Merge pull request #453 from h4mmad/master
pull image from docker hub
2022-06-02 13:34:00 +02:00
Hammad
1d49faf6f0 pull from docker hub 2022-06-01 16:18:51 +03:00
RobinLinus
724f0af576
Merge pull request #423 from GovindKrishnan/master
Fixes #407 PWA Wiki Link German Issue
2022-03-17 12:19:02 +01:00
Govind Krishnan
9a0d52ff93
Fix PWA Wiki Link German Issue
Was directing to German Wiki.
2022-03-17 06:23:03 +05:30
Matthew Gamble
a4d6cfd862
Allow selection of which network interface(s) to bind to
This is important for security reasons, as it allows someone to lock
down who can talk directly to the Snapdrop server. If someone wants to
run Snapdrop behind a reverse proxy (for example), it doesn't help if
someone can still talk directly to the Nodejs process.
2022-01-23 22:43:09 +11:00
RobinLinus
bd3d13d48a
Merge pull request #393 from arifszn/392_fix-long-file-name-on-file-previewer
fix: display long file name correctly on file previewer
2022-01-05 16:58:53 +01:00
Ariful Alam
60b97e3d38 Add word-break on font-subheading 2022-01-05 21:45:13 +06:00
RobinLinus
c8c728ba5a
Merge pull request #350 from Yash-Garg/patch-1
Add vscode extension to third party apps list
2021-12-24 07:38:47 +01:00
RobinLinus
1127ebdc17
Merge pull request #376 from SuperSandro2000/imgbot
[ImgBot] Optimize images
2021-11-26 13:53:14 +01:00
ImgBotApp
b2a4e6e0e0
[ImgBot] Optimize images
*Total -- 539.09kb -> 320.73kb (40.51%)

/client/images/logo_transparent_white_512x512.png -- 52.45kb -> 25.44kb (51.5%)
/client/images/logo_blue_512x512.png -- 67.67kb -> 33.11kb (51.07%)
/client/images/logo_white_512x512.png -- 61.92kb -> 30.56kb (50.65%)
/client/images/logo_transparent_512x512.png -- 100.40kb -> 52.07kb (48.14%)
/client/images/android-chrome-512x512.png -- 100.40kb -> 52.07kb (48.14%)
/client/images/mstile-150x150.png -- 5.57kb -> 3.49kb (37.28%)
/client/images/logo_transparent_128x128.png -- 14.14kb -> 10.32kb (27%)
/client/images/android-chrome-192x192.png -- 21.79kb -> 16.10kb (26.08%)
/client/images/favicon-96x96.png -- 8.91kb -> 6.97kb (21.8%)
/client/images/android-chrome-192x192-maskable.png -- 10.57kb -> 8.31kb (21.34%)
/client/images/apple-touch-icon.png -- 16.01kb -> 13.41kb (16.26%)
/client/images/android-chrome-512x512-maskable.png -- 35.15kb -> 30.35kb (13.66%)
/client/images/twitter-stream.jpg -- 44.13kb -> 38.52kb (12.69%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-11-25 19:10:41 +01:00
RobinLinus
84e0bc9a7f
Merge pull request #340 from Bellisario/patch-3
Resolve image too big bug modifying style
2021-11-01 18:21:02 +01:00
Yash Garg
7fc23ce33d
Add vscode extension to third party apps list 2021-09-08 13:07:20 +05:30
RobinLinus
78a8b167de
Merge pull request #342 from angela0/angela0-patch-1
fix bug: sender endlessly sends empty data
2021-08-14 17:01:21 +02:00
Angela Zu
d081bb9d01
fix bug: sender endlessly sends empty data 2021-08-14 22:42:16 +08:00
RobinLinus
a9d01aa702 Merge branch 'master' of github.com:RobinLinus/snapdrop 2021-08-12 16:00:40 +02:00
RobinLinus
fa1ff95965 Fix #334, Fix 331 2021-08-12 16:00:28 +02:00
RobinLinus
fd11568e66 Fix #334, Fix 331 2021-08-12 15:38:02 +02:00
Bellisario
7f49ec6a85
Resolve image too big bug modifying style 2021-08-05 21:18:15 +02:00
RobinLinus
5389464605
Merge pull request #325 from Bellisario/patch-3
Delete unused div (Layout Error)
2021-07-14 11:57:26 +02:00
RobinLinus
b849dd7742
Update network.js 2021-07-14 11:55:59 +02:00
Bellisario
a6fa74ca8b
Delete unused div 2021-07-09 12:53:22 +02:00
MoPaMo
36c9289280 remove whitespace 2021-06-16 15:26:49 +02:00
MoPaMo
f71b025db6 close text modal on escape press 2021-06-16 07:15:03 +02:00