Unless I totally overlooked it, it appears that Olympus has ditched the idea of encoding user IP's in the DB. What's the philosophy behind NOT encoding them now, and encoding them in the first place?
Or, I may just be totally wrong and it is encoding them and I'm a huge retard.
No more IP encoding?
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
- dhn
- Registered User
- Posts: 1518
- Joined: Wed Jul 04, 2001 8:10 am
- Location: Around the corner
- Contact:
Re: No more IP encoding?
They were not encoded but stored hexadecimally. It wouldn't make sense to encode them.hater wrote: Unless I totally overlooked it, it appears that Olympus has ditched the idea of encoding user IP's in the DB. What's the philosophy behind NOT encoding them now, and encoding them in the first place?
Or, I may just be totally wrong and it is encoding them and I'm a huge retard.
-
- Registered User
- Posts: 653
- Joined: Wed Sep 21, 2005 3:01 pm
Re: No more IP encoding?
this is more a teminology issue. hater did not say they were encrypted, but rather encoded. seeing that the function that does the packing in phpbb 2.0 is called "encode_ip()", i think his terminology is ok.dhn wrote: They were not encoded but stored hexadecimally. It wouldn't make sense to encode them.
as to the original question: if i read the code correctly, the ip address is not encoded any more. moreover, it is stored as a varchar(40), which is way more than you would need for an IPv4 address (at most 15). this means that it can work now with IPv6 addresses, and maybe other address formats (if there are such other formats), as long as it is shorter than 40 chars.
Re: No more IP encoding?
Thanks for the answers guys, much appreciated.