znc: Add support for many configurable listeners for znc

Function add_listener called from /etc/init.d/znc, but not implemented

Signed-off-by: Pavel Demkovich <finn@finnix.servebeer.com>
This commit is contained in:
Pavel Demkovich
2020-10-13 15:40:11 +03:00
parent dd4bdf47cd
commit dd586837e8
2 changed files with 43 additions and 4 deletions
+11 -3
View File
@@ -1,7 +1,5 @@
config znc
# where to listen for connections
list listener '192.168.1.1 1234'
# If using SSL sockets, use the following certifcate:
# If using SSL sockets, use the following certificate:
# option znc_ssl_cert '/etc/znc.cert'
# load global modules (You need to install them first):
@@ -10,6 +8,16 @@ config znc
# remove this to enable the service
option disabled 1
config listener 'sampleListener'
option allowirc 'true'
option allowweb 'false'
option host '192.168.1.1'
option port '1234'
option ipv4 'true'
option ipv6 'false'
# you must set option_ssl_cert in znc section before change
option ssl 'false'
config user 'sampleUser'
# Use either a plain text password or use the full sha256#... line.
# You can generate one with 'znc -s'.