From a4fa97d8ecd32927f0f3d6580c474059b59dabd2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 23 Jan 2021 10:27:47 +0000 Subject: lei: support remote externals Via curl(1), since that lets us easily use tor on a per-connection basis via LD_PRELOAD (torsocks) or proxy. We'll eventually support more curl options which can allow users to get past firewalls and deal with other odd network configurations. --- script/lei | 2 ++ 1 file changed, 2 insertions(+) (limited to 'script/lei') diff --git a/script/lei b/script/lei index 8dcea562..8c40bf12 100755 --- a/script/lei +++ b/script/lei @@ -93,6 +93,8 @@ Falling back to (slow) one-shot mode if ($buf =~ /\Ax_it ([0-9]+)\z/) { $x_it_code = $1 + 0; last; + } elsif ($buf =~ /\Achild_error ([0-9]+)\z/) { + $x_it_code = $1 + 0; } elsif ($buf =~ /\Aexec (.+)\z/) { exec_cmd(\@fds, split(/\0/, $1)); } else { -- cgit v1.2.3-24-ge0c7