Quote:
Originally Posted by FabiAN[NC]
...
|
As much as I'd also like to get IPs through AngelScript, I don't think it can be implemented in a sensible manner that would avoid leaking (why this thread was created in the first place). Suppose it was implemented using any of the below: - Make a locked down class like jjIPADDR to avoid potentially broadcasting a 4-byte integer representation. This class only lets you save the address to a file. A careless script can still open it through jjSTREAM and broadcast it.
- Or what if you need something like a UID and don't care about the exact IP?
- Hash the IP address. JJ2 only supports IPv4, and 4 bytes isn't a lot, so this can be easily bruteforced once the hash algorithm is known. Useless solution.
- Encrypt the IP address using the server's secret key. Remote admins that need this ID must request the server for it. A careless server host might leak the secret key if the key is saved as a file.
Maybe the plus team knows something I don't, but I can't think of a good solution.
|