Opened 10 years ago
Last modified 10 years ago
#2498 new defect
Rewrite get_ip() method to use PHP native functions in uploads-by-proxy
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Severity: | major |
| Plugin: | not-listed | Keywords: | |
| Cc: |
Description
The present implementation of get_ip() relies on querying remote websites, one of which, hostnametoip.com, is no longer around, leading to an error cascade which breaks the plugin's functioning.
The line referencing this domain can be safely commented out, but it's more portable and reliable to use PHP's built-in functions for DNS lookups. The end result is this patch which has a rewrite for the get_ip method.
Attachments (2)
Change History (3)
Note: See
TracTickets for help on using
tickets.
this time, using a proper diff