feat: filter router secrets to only process PPPoE services
This commit is contained in:
@@ -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', '?')})")
|
||||
|
||||
Reference in New Issue
Block a user