]> code.citadel.org Git - citadel.git/blobdiff - webcit/locate_host.c
Detect screen dimensions _before_ attaching to the server.
[citadel.git] / webcit / locate_host.c
index 8f1a769555867c39899f785f6d23c80dfa8689b5..0c173b50424998ee32aadfa5ffcebd2cce508225 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1996-2010 by the citadel.org team
  *
- * This program is free software; you can redistribute it and/or modify
+ * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
@@ -19,6 +19,7 @@
  */
 
 #include "webcit.h"
+#include "webserver.h"
 
 /*
  * IPv4/IPv6 locate_host()
@@ -32,4 +33,5 @@ void locate_host(StrBuf *tbuf, int client_socket)
        getpeername(client_socket, (struct sockaddr *)&clientaddr, &addrlen);
        getnameinfo((struct sockaddr *)&clientaddr, addrlen, clienthost, sizeof(clienthost), NULL, 0, 0);
         StrBufAppendBufPlain(tbuf, clienthost, -1, 0);
+       syslog(9, "Client is at %s\n", clienthost);
 }