shithub: qk3

Download patch

ref: 84cdb4e2e9e1712fc913c05c38f3cf94ca100e5d
parent: b8c0e4deccffcd668f7d08ffc1fe16147e9e894a
author: qwx <>
date: Sun Jan 13 14:08:00 EST 2019

net: set netadr type when filling connection details

--- a/code/unix/unix_net.c
+++ b/code/unix/unix_net.c
@@ -84,9 +84,10 @@
 		fprint(2, "getnetconninfo: %r\n");
 		return;
 	}
-	strncpy(a->addr, nc->raddr, sizeof(a->addr)-1);
+	strncpy(a->addr, nc->rsys, sizeof(a->addr)-1);
 	strncpy(a->srv, nc->rserv, sizeof(a->srv)-1);
 	snprint(a->sys, sizeof a->sys, "%s!%s", a->addr, a->srv);
+	a->type = NA_IP;
 	free(nc);
 }