feat: preconnect dialog warnings (WIP)

This commit is contained in:
aclist committed 2026-05-07 02:47:42 +09:00
1 parent 7523bffbd8
commit e2022fdee7
9 files changed
+256 -107

No files matched your search

+11
View File
@@ -88,6 +88,17 @@ class A2SInfo:
qport = self.record.qport
return source_info_to_dict(ip, qport, self.info)
def is_modded(self) -> bool:
if self.info is None:
raise ValueError("Cannot call this method on Nonetype")
try:
kw = self.info.keywords.split(",")
state = True if "mod" in kw else False
return state
except Exception as e:
logger.warning(e)
raise e
def get_netmask() -> str:
hostname = os.uname()[1]