mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Implement Simon's suggestion of moving DEFAULT_PROTOCOL into a per-backend-
link-module const variable `be_default_protocol' which suggests a sensible default to the front end (which can ignore it). (DEFAULT_PORT is replaced by a lookup in the backend[] table.) Still not pretty, but it does mean that the recent fix for `ssh-default' doesn't break PuTTYtel. [originally from svn r2613]
This commit is contained in:
6
be_all.c
6
be_all.c
@ -6,6 +6,12 @@
|
||||
#include <stdio.h>
|
||||
#include "putty.h"
|
||||
|
||||
#ifdef TELNET_DEFAULT
|
||||
const int be_default_protocol = PROT_TELNET;
|
||||
#else
|
||||
const int be_default_protocol = PROT_SSH;
|
||||
#endif
|
||||
|
||||
struct backend_list backends[] = {
|
||||
{PROT_SSH, "ssh", &ssh_backend},
|
||||
{PROT_TELNET, "telnet", &telnet_backend},
|
||||
|
Reference in New Issue
Block a user