diff options
author | Kozlov Dmitry <dima@server> | 2010-11-30 16:48:00 +0300 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-11-30 16:48:00 +0300 |
commit | 2f29e750be84ffc69d2063d7e8e2224927f8af4f (patch) | |
tree | 3890be5fb49b0abb36f45de4665aed7cf07283b6 /accel-pptpd/cli | |
parent | 575d140f9f67ce0ae6b93b9c6b47f6c7098864bb (diff) | |
download | accel-ppp-2f29e750be84ffc69d2063d7e8e2224927f8af4f.tar.gz accel-ppp-2f29e750be84ffc69d2063d7e8e2224927f8af4f.zip |
print version number on startup
Diffstat (limited to 'accel-pptpd/cli')
-rw-r--r-- | accel-pptpd/cli/telnet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/accel-pptpd/cli/telnet.c b/accel-pptpd/cli/telnet.c index a4cee6b2..4a2b93fb 100644 --- a/accel-pptpd/cli/telnet.c +++ b/accel-pptpd/cli/telnet.c @@ -20,7 +20,6 @@ #include "cli_p.h" #define RECV_BUF_SIZE 1024 -#define BANNER "accel-pptp-1.3-rc1\r\n" #define AUTH_FAILED "\r\nAuthentication failed\r\n" #define ESC_LEFT "[D" @@ -167,7 +166,7 @@ static int cli_client_sendv(struct cli_client_t *tcln, const char *fmt, va_list static int send_banner(struct telnet_client_t *cln) { - return telnet_send(cln, BANNER, sizeof(BANNER)); + return telnet_send(cln, "accel-pptp version " ACCEL_PPTP_VERSION "\r\n", sizeof("accel-pptp version " ACCEL_PPTP_VERSION "\r\n")); } static int send_config(struct telnet_client_t *cln) |