mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Improved IP address handling (includes IPv6)
This commit is contained in:
parent
d875f21647
commit
ca472ff597
14 changed files with 178 additions and 220 deletions
|
@ -1719,11 +1719,7 @@ class WebInterface(object):
|
|||
@cherrypy.expose
|
||||
@requireAuth()
|
||||
def get_ip_address_details(self, ip_address=None, **kwargs):
|
||||
import socket
|
||||
|
||||
try:
|
||||
socket.inet_aton(ip_address)
|
||||
except socket.error:
|
||||
if not helpers.is_valid_ip(ip_address):
|
||||
ip_address = None
|
||||
|
||||
return serve_template(templatename="ip_address_modal.html", title="IP Address Details", data=ip_address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue