mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2026-10-25 22:30:05 -05:00
Feat: Replace lqos_bus protocol
lqos_bus previously used `bincode`. The bincode library authors have discontinued the project, so it's not safe to rely on it. Bincode is also tricky because it requires binary version compatibility *exactly* between versions - making it hard to use external tools. This includes adding "chunking" to the protocol for faster handling of large data sets.
This commit is contained in:
1 parent
17e081f9d6
commit
91ff528e6d
9 files changed
+324
-124
No files matched your search
+6
-2
@@ -3,7 +3,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
# Fetch and install the lqos_api binary into src/bin
|
||||
# - Downloads https://download.libreqos.com/api.zip
|
||||
# - Downloads https://download.libreqos.com/api2.zip
|
||||
# - Extracts the single file lqos_api
|
||||
# - Places it into ./bin alongside other binaries
|
||||
|
||||
@@ -12,7 +12,11 @@ BIN_DIR="$SCRIPT_DIR/bin"
|
||||
TMP_ZIP="$(mktemp /tmp/lqos_api.XXXXXX.zip)"
|
||||
|
||||
echo "Downloading lqos_api..."
|
||||
curl -fsSL -o "$TMP_ZIP" "https://download.libreqos.com/api.zip"
|
||||
if ! curl -fsSL -o "$TMP_ZIP" "https://download.libreqos.com/api2.zip"; then
|
||||
echo "Warning: Failed to download lqos_api; leaving existing binary untouched."
|
||||
rm -f "$TMP_ZIP"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Ensure unzip is available
|
||||
if ! command -v unzip >/dev/null 2>&1; then
|
||||
|
||||
Reference in new issue
Block a user