Commit:84cdb4e2e9e1712fc913c05c38f3cf94ca100e5d (browse)
Parent:b8c0e4deccffcd668f7d08ffc1fe16147e9e894a
Author:qwx <>
Date:Sun Jan 13 19:08:00 CET 2019
Message:
net: set netadr type when filling connection details

code/unix/unix_net.c => 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);
 }