summaryrefslogtreecommitdiffstats
path: root/src/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/send.c b/src/send.c
index c340daf..f0ba2f7 100644
--- a/src/send.c
+++ b/src/send.c
@@ -242,7 +242,12 @@ static inline bool send_data_tap_single(fastd_buffer_t buffer, fastd_peer_t *sou
}
/** Sends a buffer of payload data to other peers */
-void fastd_send_data(fastd_buffer_t buffer, fastd_peer_t *source) {
+void fastd_send_data(fastd_buffer_t buffer, fastd_peer_t *source, fastd_peer_t *dest) {
+ if (dest) {
+ conf.protocol->send(dest, buffer);
+ return;
+ }
+
if (send_data_tap_single(buffer, source))
return;