From 05de44b040720987736e1fdeb7c40bf009ae8044 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Tue, 6 Mar 2007 02:25:56 +0000 Subject: [PATCH] Update tests/ircd*.conf so that irc.example.net is a hub for two other servers. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1769 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 8 ++++++++ tests/ircd-2.conf | 38 ++++++++++++++++++++++++++++++++++++++ tests/ircd-3.conf | 38 ++++++++++++++++++++++++++++++++++++++ tests/ircd.conf | 16 ++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 tests/ircd-2.conf create mode 100644 tests/ircd-3.conf diff --git a/ChangeLog b/ChangeLog index b2d7e7a..fd0bda0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-03-05 Michael Poole + + * tests/ircd.conf: Make into a hub. + + * tests/ircd-2.conf: New file, for a second server. + + * tests/ircd-3.conf: Configuration for a third server. + 2007-03-04 Michael Poole * ircd/whocmds.c (count_users): Fix length of ipbuf. (Spotted by diff --git a/tests/ircd-2.conf b/tests/ircd-2.conf new file mode 100644 index 0000000..45882d6 --- /dev/null +++ b/tests/ircd-2.conf @@ -0,0 +1,38 @@ +General { + name = "irc-2.example.net"; + vhost = "127.0.0.1"; + description = "Test IRC server"; + numeric = 2; +}; + +Admin { + Location = "Right Here, Right Now"; + Location = "Testbench IRC server"; + Contact = "root@localhost"; +}; + +Class { + name = "Server"; + pingfreq = 90 seconds; + connectfreq = 5 minutes; + sendq = 9 megabytes; + maxlinks = 10; +}; + +Connect { name = "irc.example.net"; host = "127.0.0.1"; port = 7600; password = "password"; class = "Server"; hub; autoconnect = yes; }; + +Class { + name = "Local"; + pingfreq = 1 minutes 30 seconds; + sendq = 160000; + maxlinks = 100; +}; + +Client { ip = "127.*"; class = "Local"; }; +Operator { local = no; class = "Local"; host = "*@127.*"; password = "$PLAIN$oper"; name = "oper"; }; +Port { server = yes; port = 7610; }; +Port { port = 7611; }; + +Features { + "PPATH" = "ircd-2.pid"; +}; diff --git a/tests/ircd-3.conf b/tests/ircd-3.conf new file mode 100644 index 0000000..6273927 --- /dev/null +++ b/tests/ircd-3.conf @@ -0,0 +1,38 @@ +General { + name = "irc-3.example.net"; + vhost = "127.0.0.1"; + description = "Test IRC server"; + numeric = 3; +}; + +Admin { + Location = "Right Here, Right Now"; + Location = "Testbench IRC server"; + Contact = "root@localhost"; +}; + +Class { + name = "Server"; + pingfreq = 90 seconds; + connectfreq = 5 minutes; + sendq = 9 megabytes; + maxlinks = 10; +}; + +Connect { name = "irc.example.net"; host = "127.0.0.1"; port = 7600; password = "password"; class = "Server"; hub; autoconnect = yes; }; + +Class { + name = "Local"; + pingfreq = 1 minutes 30 seconds; + sendq = 160000; + maxlinks = 100; +}; + +Client { ip = "127.*"; class = "Local"; }; +Operator { local = no; class = "Local"; host = "*@127.*"; password = "$PLAIN$oper"; name = "oper"; }; +Port { server = yes; port = 7620; }; +Port { port = 7621; }; + +Features { + "PPATH" = "ircd-3.pid"; +}; diff --git a/tests/ircd.conf b/tests/ircd.conf index 6ae514d..5f8c5bf 100644 --- a/tests/ircd.conf +++ b/tests/ircd.conf @@ -11,6 +11,17 @@ Admin { Contact = "root@localhost"; }; +Class { + name = "Server"; + pingfreq = 90 seconds; + connectfreq = 5 minutes; + sendq = 9 megabytes; + maxlinks = 10; +}; + +Connect { name = "irc-2.example.net"; host = "127.0.0.1"; port = 7610; password = "password"; class = "Server"; autoconnect = no; }; +Connect { name = "irc-3.example.net"; host = "127.0.0.1"; port = 7620; password = "password"; class = "Server"; autoconnect = no; }; + Class { name = "Local"; pingfreq = 1 minutes 30 seconds; @@ -20,4 +31,9 @@ Class { Client { ip = "127.*"; class = "Local"; }; Operator { local = no; class = "Local"; host = "*@127.*"; password = "$PLAIN$oper"; name = "oper"; }; +Port { server = yes; port = 7600; }; Port { port = 7601; }; + +Features { + "HUB" = "TRUE"; +}; -- 2.20.1