summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2017-11-24 18:00:45 +0000
committerhibby <d@vehibberd.com>2017-11-24 18:00:45 +0000
commit66f68650979bab76ce333f1206999137eabb08b4 (patch)
treea546eae0b7bf9b1773681845c148cebb32d85b87 /node.c
parentfed478e68c3107c555ed46cf961c1a1ed9e80997 (diff)
parente5129d408c9563d40ca03da3818a5fed305d4c41 (diff)
Update upstream source from tag 'upstream/2.8'
Update to upstream version '2.8' with Debian dir cb8bc58c641445b5c46df255ebfc19202282d6a3
Diffstat (limited to 'node.c')
-rw-r--r--node.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/node.c b/node.c
index 7ac8d50..8bf2bd8 100644
--- a/node.c
+++ b/node.c
@@ -9,7 +9,8 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-
+//IPv6
+#include <netdb.h>
#include <netax25/ax25.h>
#include <netrose/rose.h>
#include <netax25/axlib.h>
@@ -194,8 +195,8 @@ int main(int argc, char *argv[])
/* axio_flush(NodeIo); */
if(NodeIo!=NULL)
axio_flush(NodeIo);
- if (system("telnet 127.0.0.1 3694") < 0 ) { /* VE3TOK - 18Nov2014, return value */
- syslog(LOG_DEBUG, "Can't \"execute telnet 127.0.0.1 3694\"");
+ if (system("telnet localhost 3694") < 0 ) { /* VE3TOK - 18Nov2014, return value */
+ syslog(LOG_DEBUG, "Can't \"execute telnet ::1 or 127.0.0.1 3694\"");
return 1;
}
node_log(LOGLVL_ERROR,"Closing console telnet session.", -1);
@@ -256,6 +257,7 @@ int main(int argc, char *argv[])
}
if ((pw = read_perms(&User, saddr.sin.sin_addr.s_addr)) == NULL) {
node_msg("Sorry, I'm not allowed to talk to you.");
+ axio_printf(NodeIo,"*** Password required! If you don't have a password please email\n%s for a password you wish to use.\n", Email);
node_log(LOGLVL_LOGIN, "Login denied for %s @ %s", User.call, User.ul_name);
node_logout("Login denied");
}