Mercurial > hg > batmud > maputils
changeset 2295:fc966dfd7fdf
Fix/improve IPv* disable flag parsing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 30 Jun 2020 14:53:28 +0300 |
parents | a285e768e4ae |
children | 8811b1fe5dcc |
files | mapsearch.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mapsearch.c Tue Jun 30 14:21:52 2020 +0300 +++ b/mapsearch.c Tue Jun 30 14:53:28 2020 +0300 @@ -350,6 +350,10 @@ *end++ = 0; start = end; + // Check for '=<SSL/TLS spec>' at the end + if ((flags = strchr(start, '=')) != NULL) + *flags++ = 0; + // Check for ':no-ipv4' or ':no-ipv6' flag if ((end = strstr(start, ":no-ipv")) != NULL && (end[7] == '4' || end[7] == '6')) @@ -362,10 +366,6 @@ ctx->ipvMode = 4; } - // Check for '=<SSL/TLS spec>' at the end - if ((flags = strchr(start, '=')) != NULL) - *flags++ = 0; - // Get the interface name ctx->interface = th_strdup_trim(interface, TH_TRIM_BOTH); if (strcmp(ctx->interface, "*") == 0)