#include "node.h"
#include "prf.h"
#include "protocol.h"
+#include "route.h"
#include "sptps.h"
#include "utils.h"
#include "xalloc.h"
if(to != myself) {
/* We don't just forward the request, because we want to use UDP if it's available. */
- send_sptps_data(to, from, 0, buf, len);
- try_tx(to, true);
+ if(forwarding_mode == FMODE_INTERNAL) {
+ send_sptps_data(to, from, 0, buf, len);
+ try_tx(to, true);
+ }
} else {
/* The packet is for us */
if(!sptps_receive_data(&from->sptps, buf, len)) {