Commit Diff
Diff:
db88b92c8adf93ac130d9a9f955119e59c90aa1d
21f33e591185fcd8ea5fa02924ffca6f7bf6a686
21f33e591185fcd8ea5fa02924ffca6f7bf6a686
Commit:
21f33e591185fcd8ea5fa02924ffca6f7bf6a686
Tree:
7339bfb8774f69d1dc6de2f847988e8d08627dae
Committer:
Alexander Barton <alex@barton.de>
Date:
Wed May 6 22:02:00 2020
UTC
Message:
SSL test server: Use port 6790, like "test server #2"
Don't use the "standard" IRC SSL port 6697, as this easily collides with
real (ng)IRCd instances running on the same machine.
And by reusing port 6790, which is already used by the "test server #2",
we don't need any other port than the test suite already uses.
--- src/testsuite/connect-ssl-cert1-test.e
+++ src/testsuite/connect-ssl-cert1-test.e
@@ -1,7 +1,7 @@
# ngIRCd test suite
# Server connect test
-spawn openssl s_client -quiet -connect 127.0.0.1:6697
+spawn openssl s_client -quiet -connect 127.0.0.1:6790
expect {
timeout { exit 1 }
"*CN = my.first.domain.tld"
--- src/testsuite/connect-ssl-cert2-test.e
+++ src/testsuite/connect-ssl-cert2-test.e
@@ -1,7 +1,7 @@
# ngIRCd test suite
# Server connect test
-spawn openssl s_client -quiet -connect 127.0.0.1:6697
+spawn openssl s_client -quiet -connect 127.0.0.1:6790
expect {
timeout { exit 1 }
"*CN = my.second.domain.tld"
--- src/testsuite/ngircd-test3.conf
+++ src/testsuite/ngircd-test3.conf
@@ -13,7 +13,7 @@
CertFile = ssl/cert.pem
KeyFile = ssl/key.pem
DHFile = ssl/dhparams.pem
- Ports = 6697
+ Ports = 6790
[Limits]