mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
httpd: fix print ip-address, added missing shift.
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@ uint16_t html_index(void)
|
||||
itoa_html(uip_hostaddr[0]); char_to_html('.');
|
||||
itoa_html(uip_hostaddr[0] >> 8); char_to_html('.');
|
||||
itoa_html(uip_hostaddr[1]); char_to_html('.');
|
||||
itoa_html(uip_hostaddr[1]);
|
||||
itoa_html(uip_hostaddr[1] >> 8);
|
||||
slen += strtox(outbuf + slen, "</td></tr><tr><td>Gateway</td><td>");
|
||||
itoa_html(uip_draddr[0]); char_to_html('.');
|
||||
itoa_html(uip_draddr[0] >> 8); char_to_html('.');
|
||||
|
||||
Reference in New Issue
Block a user