File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 108108 const lastGroup = groups [7 ]; // e.g., "5678"
109109
110110 // Take last digit of second-last group and all digits of last group
111- const last24Bits = secondLastGroup .slice (- 1 ) + lastGroup ; // "45678"
111+ const last24Bits = secondLastGroup .slice (- 2 ) + lastGroup ; // "45678"
112112
113113 // Solicited-node multicast prefix is ff02::1:ff00:0/104
114114 const solicitedNodePrefix = ' ff02:0000:0000:0000:0000:0001:ff' ;
149149 const normalizedUnicast = expandIPv6 (trimmed );
150150 const solicitedNodeAddress = calculateSolicitedNodeMulticast (trimmed );
151151 const groups = normalizedUnicast .split (' :' );
152- const last24Bits = groups [6 ].slice (- 1 ) + groups [7 ];
152+ const last24Bits = groups [6 ].slice (- 2 ) + groups [7 ];
153153
154154 const explanation = [
155155 ` 1. Take the last 24 bits of the unicast address: ${groups [6 ]}:${groups [7 ]} → ${last24Bits } ` ,
You can’t perform that action at this time.
0 commit comments