Commit 2b105393 authored by jan.koester's avatar jan.koester
Browse files

link corrected

parent 3ab0d3bb
Loading
Loading
Loading
Loading
+6 −0
Changes for src/authdb.cpp: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ namespace authdb {
    std::mutex g_wizzard;

    bool initalized=true;
    bool DEBUG=false;

    class AuthDB : public libhttppp::HttpEvent{
    public:
@@ -420,6 +421,7 @@ int main(int argc,char *argv[]){
    cmdplus::CmdController cmd(cmdplus::CmdController::getInstance());

    cmd.registerCmd("config",'c',true,"","Config Path");
    cmd.registerCmd("debug",'d',false,"false","Config Path");

    cmd.parseCmd(argc,argv);

@@ -446,7 +448,11 @@ int main(int argc,char *argv[]){

        authdb::AuthDB authdb(backend,httpd.getServerSocket());

        if(cmd.getCmdbyKey("debug")->getValue()=="true"){
            authdb::DEBUG=true;
            authdb.threads=1;
        }

        authdb.runEventloop();
    }catch(authdb::AuthBackendError &e){
        std::cerr << e.what() << std::endl;