Update comment as in #247 (#254)

This commit is contained in:
Emeric Planet 2017-12-11 12:16:00 +01:00 committed by Michael Stapelberg
parent 53fb9b4f18
commit 657c0498db
1 changed files with 4 additions and 1 deletions

View File

@ -489,7 +489,10 @@ void print_wireless_info(yajl_gen json_gen, char *buffer, const char *interface,
char *ipv4_address = sstrdup(get_ip_addr(interface, AF_INET));
char *ipv6_address = sstrdup(get_ip_addr(interface, AF_INET6));
// Removing '%' and following characters from IPv6
/*
* Removing '%' and following characters from IPv6 since the interface identifier is redundant,
* as the output already includes the interface name.
*/
if (ipv6_address != NULL) {
char *prct_ptr = strstr(ipv6_address, "%");
if (prct_ptr != NULL) {