2020-10-12 10:26:26 -07:00
|
|
|
function connect_nc() {
|
|
|
|
|
local id=$1
|
2022-10-17 10:27:35 -04:00
|
|
|
# Note: When this command returns, the session immediately goes into a "canceling" state
|
2020-10-12 10:26:26 -07:00
|
|
|
echo "foo" | boundary connect -exec nc -target-id $id -- {{boundary.ip}} {{boundary.port}}
|
|
|
|
|
}
|