org/sonews/daemon/NNTPDaemon.java
changeset 14 efce4ec25564
parent 1 6fceb66e1ad7
child 15 f2293e8566f5
     1.1 --- a/org/sonews/daemon/NNTPDaemon.java	Fri Jun 26 16:48:50 2009 +0200
     1.2 +++ b/org/sonews/daemon/NNTPDaemon.java	Thu Aug 20 16:57:38 2009 +0200
     1.3 @@ -18,6 +18,8 @@
     1.4  
     1.5  package org.sonews.daemon;
     1.6  
     1.7 +import org.sonews.config.Config;
     1.8 +import org.sonews.Main;
     1.9  import org.sonews.util.Log;
    1.10  import java.io.IOException;
    1.11  import java.net.BindException;
    1.12 @@ -140,7 +142,7 @@
    1.13  
    1.14            // Set write selection key and send hello to client
    1.15            conn.setWriteSelectionKey(selKeyWrite);
    1.16 -          conn.println("200 " + Config.getInstance().get(Config.HOSTNAME, "localhost")
    1.17 +          conn.println("200 " + Config.inst().get(Config.HOSTNAME, "localhost")
    1.18                + " " + Main.VERSION + " news server ready - (posting ok).");
    1.19          }
    1.20          catch(CancelledKeyException cke)