]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - putty.h
Add the ability to do ssh by default: using -ssh command line option,
[PuTTY.git] / putty.h
diff --git a/putty.h b/putty.h
index 56f504c081cbf862a9ca003cab70e00687576326..1a623ac26f2fe371dcf1f57b1b8660eeaf6fb240 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -130,7 +130,20 @@ typedef struct {
     short wordness[256];
 } Config;
 
+/*
+ * You can compile with -DSSH_DEFAULT to have ssh by default.
+ */
+#ifndef SSH_DEFAULT
+#define DEFAULT_PROTOCOL PROT_TELNET
+#define DEFAULT_PORT 23
+#else
+#define DEFAULT_PROTOCOL PROT_SSH
+#define DEFAULT_PORT 22
+#endif
+
 GLOBAL Config cfg;
+GLOBAL int default_protocol;
+GLOBAL int default_port;
 
 /*
  * Exports from window.c.