From 7c26af0d362572ffa1171a537be6d1fe47cca4d6 Mon Sep 17 00:00:00 2001 From: retr0 Date: Mon, 6 Apr 2026 19:39:56 +0200 Subject: [PATCH] =?UTF-8?q?Release=20v1.0.6:=20OAuth-Patch=20f=C3=BCr=20al?= =?UTF-8?q?le=20Rust-Adress-Schreibweisen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Erweiterter sed-Patch der oauth/src/lib.rs: - '127.0.0.1' (String-Literal) - [127, 0, 0, 1] (Array-Syntax) - Ipv4Addr::LOCALHOST (Rust-Konstante → Ipv4Addr::UNSPECIFIED) Build gibt die gepatchten Zeilen aus damit der Patch nachvollziehbar ist. Co-Authored-By: Claude Sonnet 4.6 --- busch_radio_spotify/Dockerfile | 11 +++++++++-- busch_radio_spotify/config.yaml | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/busch_radio_spotify/Dockerfile b/busch_radio_spotify/Dockerfile index e8edc4b..24bf0ea 100644 --- a/busch_radio_spotify/Dockerfile +++ b/busch_radio_spotify/Dockerfile @@ -23,8 +23,15 @@ RUN apk add --no-cache \ RUN git clone --depth 1 --branch v0.7.0 \ https://github.com/librespot-org/librespot.git /build && \ cd /build && \ - # OAuth-Server auf allen Interfaces binden (statt nur 127.0.0.1) - sed -i 's/127\.0\.0\.1/0.0.0.0/g' oauth/src/lib.rs && \ + # OAuth-Server auf allen Interfaces binden (statt nur localhost). + # Rust-Code kann die Adresse auf verschiedene Weisen schreiben: + sed -i \ + -e 's/127\.0\.0\.1/0.0.0.0/g' \ + -e 's/\[127, 0, 0, 1\]/[0, 0, 0, 0]/g' \ + -e 's/Ipv4Addr::LOCALHOST/Ipv4Addr::UNSPECIFIED/g' \ + oauth/src/lib.rs && \ + echo "--- oauth/src/lib.rs (Addr-Zeilen nach Patch) ---" && \ + grep -n "0\.0\.0\|UNSPECIFIED\|127\|LOCALHOST" oauth/src/lib.rs || true && \ cargo build \ --release \ --locked \ diff --git a/busch_radio_spotify/config.yaml b/busch_radio_spotify/config.yaml index 436e719..5a650d0 100644 --- a/busch_radio_spotify/config.yaml +++ b/busch_radio_spotify/config.yaml @@ -1,6 +1,6 @@ --- name: "Busch-Radio Spotify Bridge" -version: "1.0.5" +version: "1.0.6" slug: busch_radio_spotify description: > Streamt Spotify-Musik als Internet-Radio-Stream für das Busch-Jäger Unterputz-Internetradio.