mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-18 15:16:17 +00:00
Revert 333910bf2f10b79501f917725ef300f9ba0e4537...3b32e07475fd7e54f7bbfef53e2303ba2cd7f603 on Common Tasks in rTorrent
@@ -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")
|
method.insert = cfg.interface.bind, string|const|private, (cat,"eth0")
|
||||||
# Get IPv4 address of a given interface
|
# Get IPv4 address of a given interface
|
||||||
method.insert = get_interface_ipv4_address, simple|private, \
|
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)
|
# The IP address the listening socket and outgoing connections is bound to. (bind)
|
||||||
schedule2 = set_bind_address, 0, 0, \
|
schedule2 = set_bind_address, 0, 0, \
|
||||||
"branch=((cfg.interface.bind)), \
|
"branch=((cfg.interface.bind)), \
|
||||||
|
|||||||
Reference in New Issue
Block a user