Handle RFC2732 IPv6 addresses ([::1] or [::1%1])
This commit is contained in:
parent
43e6e5359d
commit
383002efe2
@ -399,6 +399,15 @@ public class NetworkUtils
|
|||||||
|
|
||||||
colonIndex = -1;
|
colonIndex = -1;
|
||||||
int i = 0, j = 0;
|
int i = 0, j = 0;
|
||||||
|
|
||||||
|
// Can be wrapped in []
|
||||||
|
if (addrBuff[i] == '[')
|
||||||
|
{
|
||||||
|
++i;
|
||||||
|
if (scopeID == -1)
|
||||||
|
--srcb_length;
|
||||||
|
}
|
||||||
|
|
||||||
// Starting : mean we need to have at least one more.
|
// Starting : mean we need to have at least one more.
|
||||||
if (addrBuff[i] == ':')
|
if (addrBuff[i] == ':')
|
||||||
if (addrBuff[++i] != ':')
|
if (addrBuff[++i] != ':')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user