Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Handle IPv6 Stack Unavailability in Traceroute Functionality (Generated by Ana - AI SDE) #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 20, 2024

  1. Fix: Handle IPv6 Stack Unavailability in Tracer

    This commit addresses an issue where the Tracer class in connvitals/traceroute.py would throw an exception if the host machine did not have an IPv6 stack available.
    
    The issue stemmed from the __init__ method attempting to create an IPv6 socket regardless of the system's capability. This commit resolves the problem by adding a check for socket.has_ipv6 before creating the socket.
    
    If an IPv6 stack is not available, an EnvironmentError is raised with a descriptive message, preventing the exception and providing clearer feedback to the user.
    ana-ai-sde authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    57c1de5 View commit details
    Browse the repository at this point in the history