X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/43aa02a74616bd24433acdc8c316aa5f0e0b76ce..e277c42d9ad347cb7baeb9a6a5c84616bf55288f:/putty.h diff --git a/putty.h b/putty.h index 56f504c0..1a623ac2 100644 --- 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.