Skip to content

Commit 55944af

Browse files
committed
Remove hostname resolution function from dashboard.py
1 parent ef417d3 commit 55944af

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

dashboard.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,7 @@ def create_visualizations(df: pd.DataFrame):
153153
)
154154
st.plotly_chart(fig_map, use_container_width=True)
155155

156-
# Function to resolve hostnames
157-
def resolve_hostname(hostname: str) -> Optional[str]:
158-
"""Resolve a hostname to an IP address"""
159-
try:
160-
return socket.gethostbyname(hostname)
161-
except socket.gaierror as e:
162-
logger.error(f"Error resolving hostname {hostname}: {str(e)}")
163-
return None
156+
164157

165158
# capture packets
166159
def start_packet_capture():

0 commit comments

Comments
 (0)