Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: base/net/web-net-script.inc
- Revision:
- 145:d2bd78be00b2
- Parent:
- 144:7106252b7abf
- Child:
- 146:6bc151bd7063
--- a/base/net/web-net-script.inc Sat Dec 26 20:02:22 2020 +0000
+++ b/base/net/web-net-script.inc Sun Dec 27 16:18:19 2020 +0000
@@ -55,7 +55,21 @@
" let minutes = parseInt(fields[1], 16) / 1000 / 60;\n"
" dns += Math.floor(minutes).toString().padStart(4, ' ');\n"
" dns += ' ';\n"
-" dns += Net.makeIp6(fields[2]).padEnd(40, ' ');\n"
+" if (fields[2].substr( 0, 2) === '00') //Is empty or IP4\n"
+" {\n"
+" if (fields[2].substr(24, 2) === '00') //Is empty\n"
+" {\n"
+" dns += ' '.padEnd(40, ' ');\n"
+" }\n"
+" else //Is Ip4\n"
+" {\n"
+" dns += Net.makeIp4Rev(fields[2].substr(24, 8)).padEnd(40, ' ');\n"
+" }\n"
+" }\n"
+" else //Is IP6\n"
+" {\n"
+" dns += Net.makeIp6(fields[2]).padEnd(40, ' ');\n"
+" }\n"
" dns += ' ';\n"
" dns += fields[3];\n"
" dns += ' ';\n"