summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2024-08-23 02:33:40 +0000
committerliuxueli <[email protected]>2024-08-23 02:33:40 +0000
commit4e4f93388f63adfde1e34aa9b0ef9685221ca3cf (patch)
tree7ed47b2567970f43db539c462b6d8b121e6dee71
parentfb69895f77270a30a2cbb86274e6fd077aa13255 (diff)
Bugfix: Route direction is not assigned when transferred meaningv2.1.7bugfix-route-direction-error
-rw-r--r--src/stellar_on_sapp/stellar_on_sapp_api.c6
1 files 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;
}