From 4e4f93388f63adfde1e34aa9b0ef9685221ca3cf Mon Sep 17 00:00:00 2001 From: liuxueli Date: Fri, 23 Aug 2024 02:33:40 +0000 Subject: Bugfix: Route direction is not assigned when transferred meaning --- src/stellar_on_sapp/stellar_on_sapp_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stellar_on_sapp/stellar_on_sapp_api.c b/src/stellar_on_sapp/stellar_on_sapp_api.c index 904c11b..2a2d05c 100644 --- a/src/stellar_on_sapp/stellar_on_sapp_api.c +++ b/src/stellar_on_sapp/stellar_on_sapp_api.c @@ -312,12 +312,12 @@ int packet_get_route_direction(const struct packet *pkt) if(pkt == NULL || pkt->raw_pkt==NULL)return PACKET_DIRECTION_UNKNOWN; int dir=PACKET_DIRECTION_UNKNOWN; get_opt_from_rawpkt(pkt->raw_pkt, RAW_PKT_GET_ROUTE_DIR, &dir); - MESA_dir_link_to_human(dir); - if (dir == (int)'I') + dir=MESA_dir_link_to_human(dir); + if (dir == (int)'I' || dir == (int)'i') { return PACKET_DIRECTION_INCOMING; } - if (dir == (int)'E') + if (dir == (int)'E' || dir == (int)'e') { return PACKET_DIRECTION_OUTGOING; } -- cgit v1.2.3