linuxmint / warpinator

Share files across the LAN
GNU General Public License v3.0
1.21k stars 81 forks source link

If IPV6 Disabled, Warpinator failed #90

Closed kelebek333 closed 3 years ago

kelebek333 commented 3 years ago

Hi,

If I disabled IPV6 from network settings, Warpinator doesn't run properperly.

Base: Focal/Linux Mint 20.x Warpinator version: 1.2.0

For reproducing

:warpinator: Initializing Warpinator
Traceback (most recent call last):
  File "/usr/libexec/warpinator/warpinator.py", line 1077, in netmon_ready
    self.new_server()
  File "/usr/libexec/warpinator/warpinator.py", line 1098, in new_server
    self.current_ips = self.netmon.get_ips()
  File "/usr/libexec/warpinator/networkmonitor.py", line 149, in get_ips
    return util.IPAddresses(self.get_ipv4(), self.get_ipv6())
  File "/usr/libexec/warpinator/networkmonitor.py", line 170, in get_ipv6
    addrs = ip4c.get_addresses()
AttributeError: 'NoneType' object has no attribute 'get_addresses'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_warpinator.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/libexec/warpinator/warpinator.py", line 1077, in netmon_ready
    self.new_server()
  File "/usr/libexec/warpinator/warpinator.py", line 1098, in new_server
    self.current_ips = self.netmon.get_ips()
  File "/usr/libexec/warpinator/networkmonitor.py", line 149, in get_ips
    return util.IPAddresses(self.get_ipv4(), self.get_ipv6())
  File "/usr/libexec/warpinator/networkmonitor.py", line 170, in get_ipv6
    addrs = ip4c.get_addresses()
AttributeError: 'NoneType' object has no attribute 'get_addresses'