rem: client_sockaddr(fd, &ss, &length);
add: ssh_client = getenv("SSH_CLIENT"); if (ssh_client != NULL) { strlcpy(addr_buf, ssh_client, sizeof(addr_buf));  p = strchr(addr_buf, ' '); if (p) *p = '\0'; else strlcpy(addr_buf, "0.0.0.0", sizeof("0.0.0.0")); } else client_sockaddr(fd, &ss, &length);
context: char *client_addr(int fd){	struct sockaddr_storage ss;	socklen_t length = sizeof ss;	static char addr_buf[100];	static int initialised;	if (initialised) return addr_buf;	initialised = 1;	client_sockaddr(fd, &ss, &length);	getnameinfo((struct sockaddr *)&ss, length,		    addr_buf, sizeof(addr_buf), NULL, 0, NI_NUMERICHOST);		return addr_buf;}