`ssh-default': change the /DSSH_DEFAULT flag to a /DTELNET_DEFAULT one
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 15 Jan 2003 15:22:58 +0000 (15:22 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 15 Jan 2003 15:22:58 +0000 (15:22 +0000)
and note its existence in Recipe. As far as I can tell there are no
documentation changes required.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2608 cda61777-01e9-0310-a592-d414129be87e

Recipe
putty.h

diff --git a/Recipe b/Recipe
index c838451..05381b9 100644 (file)
--- a/Recipe
+++ b/Recipe
 #      Cygnus/mingw32, whose resource compiler may have less of a
 #      problem with it.
 #
+#  - XFLAGS=/DTELNET_DEFAULT
+#      Causes PuTTY to default to the Telnet protocol (in the absence
+#      of Default Settings and so on to the contrary). Normally PuTTY
+#      will default to SSH.
+#
 #  - XFLAGS=/DDEBUG
 #      Causes PuTTY to enable internal debugging.
 #
diff --git a/putty.h b/putty.h
index 7f0f781..28320de 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -371,9 +371,10 @@ struct config_tag {
 };
 
 /*
- * You can compile with -DSSH_DEFAULT to have ssh by default.
+ * You can compile with -DTELNET_DEFAULT to have telnet by default
+ * (otherwise SSH is the default).
  */
-#ifndef SSH_DEFAULT
+#ifdef TELNET_DEFAULT
 #define DEFAULT_PROTOCOL PROT_TELNET
 #define DEFAULT_PORT 23
 #else