]> git.corax.cc Git - toolbox/commit
utils: Make ipc-tap and ipc-inject use the same endpoint
authorMatthias Kruk <m@m10k.eu>
Thu, 9 Mar 2023 11:11:38 +0000 (20:11 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 9 Mar 2023 11:11:38 +0000 (20:11 +0900)
commit257cfaae26eb20db54762e2d0e7211e5f08553d0
tree74d4809d0f5df95e7be56e619c1e3fb511bf2425
parentc0126c5065b5235dc5020e1740daaaf4b74544ac
utils: Make ipc-tap and ipc-inject use the same endpoint

When ipc-sshtunnel is used to tunnel a pubsub topic in both directions,
ipc-tap will receive messages sent from the ipc-inject instance of the
same tunnel. This makes it impossible to use ipc-sshtunnel to relay a
topic in both directions.

This commit modifies ipc-tap and ipc-inject so that the caller may pass
an endpoint name that the scripts will use for IPC communication. This
further modifies ipc-sshtunnel so that it passes the same endpoint name
to ipc-tap and ipc-inject, causing the same endpoint to be used for
sending and receiving of messages. This causes messages from ipc-inject
not to be sent to ipc-tap.
utils/ipc-inject.sh
utils/ipc-sshtunnel.sh
utils/ipc-tap.sh