From a3bd476a20ccdd4eba2bea473b23ba9425c42310 Mon Sep 17 00:00:00 2001 From: PyroScope Project Date: Sat, 19 Aug 2017 23:33:58 +0200 Subject: [PATCH] make things less unreadble --- Common-Tasks-in-rTorrent.rest | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Common-Tasks-in-rTorrent.rest b/Common-Tasks-in-rTorrent.rest index dd01427..d3207c5 100644 --- a/Common-Tasks-in-rTorrent.rest +++ b/Common-Tasks-in-rTorrent.rest @@ -241,9 +241,12 @@ The following can be used to set an interface with IPv4 address (e.g. ``eth0``) # Set an interface with IPv4 address to bind to: [eth0|tun0] 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.]+')\\\"\"" +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.]+')\\\"\"" # The IP address the listening socket and outgoing connections is bound to. (bind) -schedule2 = set_bind_address, 0, 0, "branch=((cfg.interface.bind)),((network.bind_address.set,(get_interface_ipv4_address,(cfg.interface.bind))))" +schedule2 = set_bind_address, 0, 0, \ + "branch=((cfg.interface.bind)), \ + ((network.bind_address.set,(get_interface_ipv4_address,(cfg.interface.bind))))" ```