For Parsing Ports that are lower than 255 your algorithm have no problem, But For Ports that are Upper than 256 such as 443 or 8080 your algorithm is not helpful.
for example:
443(0x01bb) => 1187(0x04A3) :|
or
8080(0x1490) => 20144(0x4EB0) :|
Actually You parse port in little-endian numeric system bot in real port is in big-endian system.
I fixed it and fork to this repository.
Thanks a Lot🌹
For Parsing Ports that are lower than 255 your algorithm have no problem, But For Ports that are Upper than 256 such as 443 or 8080 your algorithm is not helpful.
for example:
443(0x01bb) => 1187(0x04A3) :|
or
8080(0x1490) => 20144(0x4EB0) :|
Actually You parse port in little-endian numeric system bot in real port is in big-endian system.
I fixed it and fork to this repository.
Thanks a Lot🌹