mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-11 06:54:32 +00:00
Currently, http-socket uses a `parse_url` method which only works correctly with IPv4 hosts (e.g. `http://192.168.1.1:3000`). When using an IPv6 host (e.g. `http://[abcd::1]:3000`), the port number is not parsed due to a pointer increment error, which leads to the algorithm assuming a default port of 80 even when the user code has specified otherwise. This fix provides full URL parsing for IPv6 hosts, and does not break IPv4 functionality. |
||
---|---|---|
.. | ||
http-socket | ||
ip | ||
ip64 | ||
ipv4 | ||
ipv6 | ||
llsec | ||
mac | ||
rime | ||
rpl | ||
linkaddr.c | ||
linkaddr.h | ||
nbr-table.c | ||
nbr-table.h | ||
netstack.c | ||
netstack.h | ||
packetbuf.c | ||
packetbuf.h | ||
queuebuf.c | ||
queuebuf.h |