Commit 6a691f3a authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Added getter for the settings

parent 83777446
......@@ -6,7 +6,6 @@ import com.frostnerd.dnsserver.database.ServerDatabaseHelper;
import com.frostnerd.dnsserver.database.entities.main.DNSServerSetting;
import com.frostnerd.dnsserver.util.DNSResolver;
import com.frostnerd.dnsserver.util.QueryLogger;
import com.frostnerd.dnsserver.util.Util;
import java.net.InetAddress;
import java.net.UnknownHostException;
......@@ -78,6 +77,7 @@ public abstract class DNSServer implements Runnable {
stopServer();
resolver.cleanup();
if(queryLogger != null)queryLogger.cleanup();
settings.setServerRunning(false);
serverDatabase.close();
serverDatabase = null;
resolver = null;
......@@ -87,6 +87,10 @@ public abstract class DNSServer implements Runnable {
settings = null;
}
public final DNSServerSetting getServerSetting(){
return settings;
}
public interface ErrorListener{
public void onError(Exception e);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment