Update tests/ircd*.conf so that irc.example.net is a hub for two other servers.
authorMichael Poole <mdpoole@troilus.org>
Tue, 6 Mar 2007 02:25:56 +0000 (02:25 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 6 Mar 2007 02:25:56 +0000 (02:25 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1769 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
tests/ircd-2.conf [new file with mode: 0644]
tests/ircd-3.conf [new file with mode: 0644]
tests/ircd.conf

index b2d7e7a1d70a0bb614e23621acd240c2530df63b..fd0bda03464cc8c0973168cefdd24fa204d442c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-03-05  Michael Poole <mdpoole@troilus.org>
+
+       * 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 <mdpoole@troilus.org>
 
        * 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 (file)
index 0000000..45882d6
--- /dev/null
@@ -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 (file)
index 0000000..6273927
--- /dev/null
@@ -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";
+};
index 6ae514d0efe6ab564f90a86d11713f8f6c225385..5f8c5bffce689194ac0bc9c6fe5fb424f89e9031 100644 (file)
@@ -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";
+};