about summary refs log tree commit diff
path: root/doc/sample-ngircd.conf
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2008-05-19 00:12:41 +0200
committerFlorian Westphal <fw@strlen.de>2008-05-19 14:27:35 +0200
commit4ed2cb1a0248130f476ff9afd4fd4ed887fee376 (patch)
treecc36b59cd11ae640e10a827ab5b5c2a0456fed3b /doc/sample-ngircd.conf
parent818a206a4261f3d4153b0ab5c2025d77002290f5 (diff)
downloadngircd-4ed2cb1a0248130f476ff9afd4fd4ed887fee376.tar.gz
ngircd-4ed2cb1a0248130f476ff9afd4fd4ed887fee376.zip
make Listen parameter a comma-seperated list of addresses.
this also obsoletes ListenIPv4 and ListenIPv6 options.
If Listen is unset, it is treated as Listen="::,0.0.0.0".

Note: ListenIPv4 and ListenIPv6 options are still recognized,
but ngircd will print a warning if they are used in the config file.

Also, some plattforms require that ai_socktype
is set in the getaddrinfo() hints structure.
Diffstat (limited to 'doc/sample-ngircd.conf')
-rw-r--r--doc/sample-ngircd.conf13
1 files changed, 5 insertions, 8 deletions
diff --git a/doc/sample-ngircd.conf b/doc/sample-ngircd.conf
index 9f107a83..87a94d9d 100644
--- a/doc/sample-ngircd.conf
+++ b/doc/sample-ngircd.conf
@@ -40,9 +40,11 @@
 	# one port, separated with ",". (Default: 6667)
 	;Ports = 6667, 6668, 6669
 
-	# IP address on which the server should listen. (Default: empty,
-	# so the server listens on all IP addresses of the system)
-	;Listen = 1.2.3.4
+	# comma seperated list of IP addresses on which the server should
+	# listen. Default values are:
+	# "0.0.0.0" or (if compiled with IPv6 support) "::,0.0.0.0"
+	# so the server listens on all IP addresses of the system by default.
+	;Listen = 127.0.0.1,192.168.0.1
 
 	# Text file with the "message of the day" (MOTD). This message will
 	# be shown to all users connecting to the server:
@@ -103,11 +105,6 @@
 	# Don't do any DNS lookups when a client connects to the server.
 	;NoDNS = no
 
-	# allow both ipv4 and ipv6 clients to connect by opening both
-	# ipv4 and ipv6 sockets
-	;ListenIPv6 = yes
-	;ListenIPv4 = yes
-
 	# try to connect to other irc servers using ipv4 and ipv6, if possible
 	;ConnectIPv6 = yes
 	;ConnectIPv4 = yes