gufolabs / gufo_ping

Gufo Labs Ping is the accelerated Python asyncio IPv4/IPv6 ping implementation.
https://docs.gufolabs.com/gufo_ping/
Other
10 stars 0 forks source link

BUG: Setting ttl fails for IPv6 #4

Open dvolodin7 opened 1 year ago

dvolodin7 commented 1 year ago

Describe the issue:

Setting ttl on IPv6 packets ends with OSError: Protocol not available

Reproduce the code example:

import asyncio
from gufo.ping import Ping

async def main():
    ping = Ping(ttl=32)
    await ping.ping("::1"):
        pass

asyncio.run(main())

Error message:

OSError: Protocol not available

Python version information

3.11.2 (main, Mar 23 2023, 03:00:37) [GCC 10.2.1 20210110]

Gufo Ping version information

0.2.4

Operation system version

Devcontainer

dvolodin7 commented 1 year ago

I have open an issue in socket2 library: rust-lang/socket2/issues/418