Commit Graph
5 Commits
Author SHA1 Message Date
yuanyuanxianganddeepseek-flash 0e20e0bbdb Feature: update zlib to 1.4 and pick wire compression at runtime
The client selected zlib or zstd for the wire protocol at compile time
(USING_ZLIB), so changing the mode required a rebuild, and the vendored
zlib was still 1.3.2.

Vendored zlib is now 1.4 (headers and both static libs rebuilt from the
upstream source root). The client links zlib and zstd together and reads
settings\compress from its own registry key when a connection is
created: "zlib" selects zlib, anything else keeps the zstd default.
Every connection reads it once, so sub-connections follow the main link.

The online list context menu gains "Experimental -> Wire compression:
ZSTD / ZLIB". It sends COMMAND_SET_COMPRESS (181) only to hosts that
declare CLIENT_CAP_COMPRESS_SWITCH; the client persists the choice and
restarts its connection thread, so the new mode applies in about two
seconds without restarting the process. The online-info tooltip now
marks the negotiated algorithm with [ZSTD] / [ZLIB] / [NONE].

Also fixes zlib buffer sizing on both ends: 1.001n+12 is one byte short
of compressBound for packets under about 1 KB, which silently dropped
small commands.

Verified: both modes connect and receive MasterSettings; menu switching
to zlib and back reconnects in each mode; Debug/Release x64, Release
x86, ServerDll and server builds pass.

Co-Authored-By: deepseek-flash
2026-11-23 17:46:36 +01:00
yuanyuanxiang de621aa555 Compliance: Audit third-party dependencies and complete the license notices
Dependencies.md only covered compress/ and the injection libraries. Everything
else in the tree was undocumented, and LICENSE-THIRD-PARTY.txt was missing
three components that Dependencies.md already listed.

Added to Dependencies.md (23 entries):

  vendored source  KCP/ikcp, xxHash 0.8.3, tiny-AES-c, skCrypter,
                   cpp-httplib 0.14.3
  runtime / data   OpenSSL (Linux/macOS TLS and libsign.a HMAC), FRP
                   (Bin/res/frpc.dll, frps.dll), ip2region xdb v4, QQWry,
                   Microsoft DirectX SDK headers
  server-go        jwt 5.3.1, gorilla/websocket 1.5.3, klauspost/compress
                   1.18.2, zerolog 1.34.0, x/sync, x/text, lumberjack 2.2.1
                   plus 3 indirect modules
  android          androidx core-ktx 1.13.1, appcompat 1.7.0, Kotlin stdlib
                   2.1.21
  test             GoogleTest 1.14.0 (CMake FetchContent)

LICENSE-THIRD-PARTY.txt grows from 278 to 633 lines and 22 sections. Full text
is embedded for the short licenses (MIT, BSD, zlib, Unlicense); the Apache,
LGPL and GPL entries follow the file's existing style of terms + obligations +
where to obtain the text, rather than reproducing legal text by hand.

Three findings worth recording:

- x264 is GPL-2.0 and is linked statically (client/X264Encoder.cpp). The old
  file only stated that FFmpeg was built without GPL plugins, and never
  mentioned that x264 is linked separately. Section 21 now spells out the
  consequence: a binary containing x264 is a GPL-2.0 work unless covered by a
  commercial x264 license.

- FFmpeg is linked STATICALLY, not dynamically as the old text claimed. There
  is no av*.dll anywhere in the tree; the pragmas reference libavcodec_x64.lib
  and friends. Section 19 is rewritten around LGPL-2.1 section 6 and quotes the
  configure line recovered from libavutil, which also shows the build is
  decode-only (--disable-encoders). That means x264 is the product's only
  H.264 encoder, so DISABLE_X264_FOR_TEST=1 leaves no encoder at all and the
  client degrades to RGB565.

- The FRP binaries report buildinfo v0.69.2-...+d58c00d0332c+dirty. The "+dirty"
  means the FRP sources were modified locally, and Apache-2.0 section 4(b)
  requires modified files to carry a prominent change notice.
2026-10-30 11:04:54 +01:00
yuanyuanxiang a5a04aaab7 fix(web): improve touch double-click reliability across platforms
Increase touch move threshold to prevent accidental drag detection.

Simulate physical double-click with two sequential click events and a 20ms delay instead of using non-standard dblclick event.

Fix folder renaming and unresponsiveness issues on Windows, Linux, and macOS.
2026-05-30 23:41:03 +02:00
yuanyuanxiang c0a632a4c6 Compliance: Add building option to disable x264 and ffmpeg 2026-05-27 18:58:29 +02:00
yuanyuanxiang 5a325a202b Init: Migrate SimpleRemoter (Since v1.3.1) to Gitea 2026-04-19 22:55:21 +02:00