mitmpcap icon indicating copy to clipboard operation
mitmpcap copied to clipboard

tries to apply ipv4 rule to ipv6 address

Open 54696d21 opened this issue 4 years ago • 2 comments

Thank you very much for this addon :) On my connection (dual stack ipv4/ipv6) it occasionally throws the following error.

Addon error: Traceback (most recent call last):
  File "mitmpcap.py", line 118, in response
    self.export_request(client_addr, server_addr, flow.request)
  File "mitmpcap.py", line 129, in export_request
    self.exporter.packets(*client_addr, *server_addr, payload)
  File "mitmpcap.py", line 59, in packets
    self.packet(src_host, src_port,
  File "mitmpcap.py", line 39, in packet
    ipv4_args.extend(map(int, dst_host.split('.')))
ValueError: invalid literal for int() with base 10: '2a02:26f0:12d::58dd:d62b'

54696d21 avatar Jan 23 '20 12:01 54696d21

Currently IPv6 not yet support.

muzuiget avatar Apr 18 '20 09:04 muzuiget

@muzuiget what would you suggest as solution? Happy to contribute.

christian-bromann avatar Oct 20 '21 13:10 christian-bromann

#10

muzuiget avatar Nov 12 '23 09:11 muzuiget