diff --git a/0001-usbredirect-listen-on-correct-address.patch b/0001-usbredirect-listen-on-correct-address.patch deleted file mode 100644 index 5b805a1..0000000 --- a/0001-usbredirect-listen-on-correct-address.patch +++ /dev/null @@ -1,34 +0,0 @@ -From bf307aeb470f40ffc41ecc909fbd2e65cda3640e Mon Sep 17 00:00:00 2001 -From: Daniel Fullmer -Date: Mon, 25 Jul 2022 19:51:34 -0700 -Subject: [PATCH] usbredirect: listen on correct address - -Previously, usbredirect would ignore the listen address passed via -`--as :`, and would always listen on the loopback interface. -This corrects that behavior. - -Signed-off-by: Daniel Fullmer ---- - tools/usbredirect.c | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/tools/usbredirect.c b/tools/usbredirect.c -index 5e2376c..ff910ab 100644 ---- a/tools/usbredirect.c -+++ b/tools/usbredirect.c -@@ -567,7 +567,12 @@ main(int argc, char *argv[]) - GSocketService *socket_service; - - socket_service = g_socket_service_new (); -- GInetAddress *iaddr = g_inet_address_new_loopback(G_SOCKET_FAMILY_IPV4); -+ GInetAddress *iaddr = g_inet_address_new_from_string(self->addr); -+ if (iaddr == NULL) { -+ g_warning("Failed to parse IP: %s", self->addr); -+ goto end; -+ } -+ - GSocketAddress *saddr = g_inet_socket_address_new(iaddr, self->port); - g_object_unref(iaddr); - --- -2.37.0.windows.1 diff --git a/usbredir-0.12.0.tar.xz b/usbredir-0.12.0.tar.xz deleted file mode 100644 index 02f6e98..0000000 Binary files a/usbredir-0.12.0.tar.xz and /dev/null differ diff --git a/usbredir-0.13.0.tar.xz b/usbredir-0.13.0.tar.xz new file mode 100644 index 0000000..13b760b Binary files /dev/null and b/usbredir-0.13.0.tar.xz differ diff --git a/usbredir.spec b/usbredir.spec index 46756c8..26f2a12 100644 --- a/usbredir.spec +++ b/usbredir.spec @@ -1,13 +1,12 @@ Name: usbredir -Version: 0.12.0 -Release: 3 +Version: 0.13.0 +Release: 1 Summary: network protocol libraries for sending USB device traffic License: LGPLv2+ and GPLv2+ URL: https://www.spice-space.org/usbredir.html Source0: http://spice-space.org/download/%{name}/%{name}-%{version}.tar.xz -Patch1: 0001-usbredirect-listen-on-correct-address.patch BuildRequires: libusb1-devel >= 1.0.9 gcc BuildRequires: meson glib2-devel @@ -56,7 +55,6 @@ This contains man files for the using of usbredir. %license COPYING COPYING.LIB %{_libdir}/libusbredir*.so.* %{_bindir}/usbredirect -%{_sbindir}/usbredirserver %files devel %doc ChangeLog.md @@ -66,10 +64,12 @@ This contains man files for the using of usbredir. %files help %{_mandir}/man1/usbredirect.1* -%{_mandir}/man1/usbredirserver.1* %changelog +* Tue Feb 7 2023 zhanghongtao - 0.13.0-1 +- update to 0.13.0 + * Tue Nov 1 2022 lihaoxiang - 0.12.0-3 - usbredirect: listen on correct address