diff options
| -rw-r--r-- | src/stellar_on_sapp/stellar_on_sapp_api.c | 6 |
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; } |
