]> git.corax.cc Git - toolbox/commit
utils/ipc-sshtunnel: Merge local_to_remote() and remote_to_local()
authorMatthias Kruk <m@m10k.eu>
Sat, 8 Oct 2022 06:36:51 +0000 (15:36 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 8 Oct 2022 06:36:51 +0000 (15:36 +0900)
commiteffca6ee3bb8cd86bf4a2408d3e2ab6a6f23e03f
tree861743d5b6b8bf448e150e26c1116f8b2cc14052
parentfe7cd37d019817577b9c5d6b31eb45657ad876f9
utils/ipc-sshtunnel: Merge local_to_remote() and remote_to_local()

Except for the position of the call to ssh, the local_to_remote()
and remote_to_local() functions in ipc-sshtunnel are completely
identical.

This commit merges the two functions into one. The new function
expects the caller to pass the direction of the tunnel to be
established in the first argument.
utils/ipc-sshtunnel.sh