summaryrefslogtreecommitdiff
path: root/tests/serverhelp.pm
diff options
context:
space:
mode:
authorMax Dymond <max.dymond@metaswitch.com>2017-07-05 10:12:10 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-07-07 11:00:26 +0200
commit06a6feba9de67733ef943ed9f64076923dc5f747 (patch)
tree11504464bf448538c937be594b018d9e89c2b766 /tests/serverhelp.pm
parentefedafe48a390e7f762588909e5511a76353e0d9 (diff)
downloadcurl-06a6feba9de67733ef943ed9f64076923dc5f747.tar.gz
test1452: add telnet negotiation
Add a basic telnet server for negotiating some telnet options before echoing back any data that's sent to it. Closes #1645
Diffstat (limited to 'tests/serverhelp.pm')
-rw-r--r--tests/serverhelp.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serverhelp.pm b/tests/serverhelp.pm
index 36fb89ed2..a83a12584 100644
--- a/tests/serverhelp.pm
+++ b/tests/serverhelp.pm
@@ -105,7 +105,7 @@ sub servername_str {
$proto = uc($proto) if($proto);
die "unsupported protocol: '$proto'" unless($proto &&
- ($proto =~ /^(((FTP|HTTP|HTTP\/2|IMAP|POP3|SMTP|HTTP-PIPE)S?)|(TFTP|SFTP|SOCKS|SSH|RTSP|GOPHER|HTTPTLS|DICT|SMB|SMBS))$/));
+ ($proto =~ /^(((FTP|HTTP|HTTP\/2|IMAP|POP3|SMTP|HTTP-PIPE)S?)|(TFTP|SFTP|SOCKS|SSH|RTSP|GOPHER|HTTPTLS|DICT|SMB|SMBS|TELNET))$/));
$ipver = (not $ipver) ? 'ipv4' : lc($ipver);
die "unsupported IP version: '$ipver'" unless($ipver &&