From 3b32e07475fd7e54f7bbfef53e2303ba2cd7f603 Mon Sep 17 00:00:00 2001 From: Michael Brenner <49025097+mbrennr@users.noreply.github.com> Date: Tue, 22 Oct 2019 06:09:34 +0200 Subject: [PATCH] Space missing in grep regex expression in method get_interface_ipv4_address called by set_bind_address --- Common-Tasks-in-rTorrent.rest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common-Tasks-in-rTorrent.rest b/Common-Tasks-in-rTorrent.rest index 5b2a76f..29f7221 100644 --- a/Common-Tasks-in-rTorrent.rest +++ b/Common-Tasks-in-rTorrent.rest @@ -263,7 +263,7 @@ The following can be used to set an interface with IPv4 address (e.g. ``eth0``) method.insert = cfg.interface.bind, string|const|private, (cat,"eth0") # Get IPv4 address of a given interface method.insert = get_interface_ipv4_address, simple|private, \ - "execute.capture=bash,-c,\"$cat=\\\"echo -n \$(ip -o -4 addr show \\\",$argument.0=,\\\" | grep -Po 'inet \\\\\\\\\\K[\\\\\\\\\\d.]+')\\\"\"" + "execute.capture=bash,-c,\"$cat=\\\"echo -n \$(ip -o -4 addr show \\\",$argument.0=,\\\" | grep -Po 'inet \\\\\\\\\\K[\\\\\\\\\\d.]+ ')\\\"\"" # The IP address the listening socket and outgoing connections is bound to. (bind) schedule2 = set_bind_address, 0, 0, \ "branch=((cfg.interface.bind)), \