feat: filter router secrets to only process PPPoE services

This commit is contained in:
2026-02-06 18:27:08 +08:00
parent 3afb0ce409
commit f9d608d2d4

View File

@@ -322,6 +322,10 @@ async def call_tool(name: str, arguments: Any) -> List[TextContent | ImageConten
# 3. Compare
unregistered = []
for s in router_secrets:
# Filter only PPPoE service (exclude 'any' and others)
if s.get('service') != 'pppoe':
continue
s_name = s.get('name')
if s_name and s_name not in billing_users:
unregistered.append(f"{s_name} (Profile: {s.get('profile', '?')})")