Avoid reverse lookup in GFS
[yaz-moved-to-github.git] / src / statserv.c
index 8d2629d..8ef8acb 100644 (file)
@@ -6,7 +6,7 @@
  * NT threaded server code by
  *   Chas Woodfield, Fretwell Downing Informatics.
  *
- * $Id: statserv.c,v 1.1 2003-10-27 12:21:35 adam Exp $
+ * $Id: statserv.c,v 1.3 2004-01-15 10:05:56 adam Exp $
  */
 
 #include <stdio.h>
@@ -650,7 +650,7 @@ static int add_listener(char *where, int what)
     yaz_log(LOG_LOG, "Adding %s %s listener on %s", mode,
            what == PROTO_SR ? "SR" : "Z3950", where);
 
-    l = cs_create_host(where, 0, &ap);
+    l = cs_create_host(where, 2, &ap);
     if (!l)
     {
        yaz_log(LOG_FATAL|LOG_ERRNO, "Failed to listen on %s", where);
@@ -874,7 +874,7 @@ int check_options(int argc, char **argv)
            fprintf(stderr, "Usage: %s [ -a <pdufile> -v <loglevel>"
                    " -l <logfile> -u <user> -c <config> -t <minutes>"
                    " -k <kilobytes> -d <daemon>"
-                        " -ziST1 -w <directory> <listender-addr>... ]\n", me);
+                        " -ziST1 -w <directory> <listener-addr>... ]\n", me);
            return 1;
         }
     }