Webadmin can't delete listener if there is no IPv6 #900

Open
opened 2026-10-05 04:51:47 +02:00 by adam · 0 comments
Owner

If ZNC is build without IPv6 support, it says "The specified listener was not found" when user tries to delete a listener in webadmin.
The problem is the way how the table is rendered: https://github.com/znc/znc/blob/458ce602aa8b14ab870371e26ccec9d29c77bb97/modules/webadmin.cpp#L1916-L1931
It was done this way to not lie to user: the table shouldn't say that IPv6 is enabled when it's not. But deleting the row looks at what checkboxes are enabled to determine which listener to delete: https://github.com/znc/znc/blob/458ce602aa8b14ab870371e26ccec9d29c77bb97/modules/webadmin.cpp#L1834-L1851

screenshot

If ZNC is build without IPv6 support, it says "The specified listener was not found" when user tries to delete a listener in webadmin. The problem is the way how the table is rendered: https://github.com/znc/znc/blob/458ce602aa8b14ab870371e26ccec9d29c77bb97/modules/webadmin.cpp#L1916-L1931 It was done this way to not lie to user: the table shouldn't say that IPv6 is enabled when it's not. But deleting the row looks at what checkboxes are enabled to determine which listener to delete: https://github.com/znc/znc/blob/458ce602aa8b14ab870371e26ccec9d29c77bb97/modules/webadmin.cpp#L1834-L1851 ![screenshot](https://user-images.githubusercontent.com/325092/53229404-fde48500-367b-11e9-94e8-8c208aa1c8c4.png) <!-- github-sync-id:413293929 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#900