Open
Description
Describe the bug
Develop and master branches have a KeyError in IP info module when run in growing zeek directors
Not sure what conditions are necessary
To Reproduce
Steps to reproduce the behavior:
- Go to branch develop
- Run on traffic.
- See error
errors.log
2025/07/12 14:46:33.524515 [IP Info] Problem in line 85
2025/07/12 14:46:33.528422 [IP Info] Traceback (most recent call last):
File "/StratosphereLinuxIPS/slips_files/common/abstracts/iasync_module.py", line 85, in run
error: bool = self.pre_main()
File "/StratosphereLinuxIPS/modules/ip_info/ip_info.py", line 559, in pre_main
if ip := self.get_gateway_ip_if_interface():
File "/StratosphereLinuxIPS/modules/ip_info/ip_info.py", line 393, in get_gateway_ip_if_interface
return self.get_gateway_for_iface(interface)
File "/StratosphereLinuxIPS/modules/ip_info/ip_info.py", line 335, in get_gateway_for_iface
if "default" in gws and gws["default"][family]:
KeyError: 10
Branch
Master and Develop
Environment (please complete the following information):
- OS: macos
- Version 14.6.1
- Python version 3.10.12
- Are you running slips in docker or locally? docker
- Docker version (if running slips in docker)4.43.1 (198352)
- Commit hash: 2a54322