ce5688
commit e8b73078fd56a4d16ffa9cbb51f43ac75c5f7f1f
ce5688
Author: nnposter <nnposter@e0a8ed71-7df4-0310-8962-fdc924857419>
ce5688
Date:   Mon Sep 11 02:33:07 2017 +0000
ce5688
ce5688
    Provides more meaningful information about the connecting client when in UDP listening mode. Closes #980
ce5688
ce5688
diff --git a/ncat/ncat_listen.c b/ncat/ncat_listen.c
ce5688
index b047a5866..20b14b7db 100644
ce5688
--- a/ncat/ncat_listen.c
ce5688
+++ b/ncat/ncat_listen.c
ce5688
@@ -898,8 +898,8 @@ static int ncat_listen_dgram(int proto)
ce5688
             ncat_log_recv(buf, nbytes);
ce5688
         }
ce5688
 
ce5688
-        if (o.debug > 1)
ce5688
-            logdebug("Valid Connection from %d\n", socket_n);
ce5688
+        if (o.verbose)
ce5688
+            loguser("Connection from %s.\n", inet_socktop(&remotess));
ce5688
 
ce5688
         conn_inc++;
ce5688
 
ce5688
@@ -917,6 +917,7 @@ static int ncat_listen_dgram(int proto)
ce5688
             struct fdinfo info = { 0 };
ce5688
 
ce5688
             info.fd = socket_n;
ce5688
+            info.remoteaddr = remotess;
ce5688
             if (o.keepopen)
ce5688
                 netrun(&info, o.cmdexec);
ce5688
             else