windows tests: use socat for forwardedPorts
This commit is contained in:
parent
f6ebe4a88d
commit
5d7889357a
@ -15,12 +15,11 @@ let
|
|||||||
if isolateNetwork
|
if isolateNetwork
|
||||||
then "on"
|
then "on"
|
||||||
else "off";
|
else "off";
|
||||||
nc = "${netcat}/bin/nc";
|
# use socat instead of `tcp:…` to allow multiple connections
|
||||||
# use netcat instead of `tcp:…` to allow multiple connections
|
|
||||||
guestfwds =
|
guestfwds =
|
||||||
builtins.concatStringsSep ""
|
builtins.concatStringsSep ""
|
||||||
(map ({ listenAddr, targetAddr, port }:
|
(map ({ listenAddr, targetAddr, port }:
|
||||||
",guestfwd=tcp:${listenAddr}:${toString port}-cmd:${nc}\\ ${targetAddr}\\ ${toString port}"
|
",guestfwd=tcp:${listenAddr}:${toString port}-cmd:${socat}/bin/socat\\ -\\ tcp:${targetAddr}:${toString port}"
|
||||||
) forwardedPorts);
|
) forwardedPorts);
|
||||||
args = [
|
args = [
|
||||||
"-enable-kvm"
|
"-enable-kvm"
|
||||||
|
Loading…
Reference in New Issue
Block a user