summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2011-12-04 03:05:29 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2011-12-04 03:05:29 +0200
commit87ae9b260cf282cf3936522d4e5a1b4a283f33ae (patch)
tree8ec1b3a50180cce7561c321f645a965f38691778 /server
parent9525854f31970a4eef3bf10fb8bf268128245fb7 (diff)
send only existsing files in upload list
Diffstat (limited to 'server')
-rw-r--r--server/server/config.cpp6
-rw-r--r--server/server/config.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/server/server/config.cpp b/server/server/config.cpp
index 9f9e9fb..4eb215d 100644
--- a/server/server/config.cpp
+++ b/server/server/config.cpp
@@ -23,8 +23,8 @@ config::config(const char *pth)
vars.dos_conn_count = get_int(cfg_str, "DosConnectionCount=", 200);
vars.debug = get_int(cfg_str, "Debug=", 0);
vars.bind_ip = get_string(cfg_str, "BindAddress=", "0.0.0.0");
- vars.log_path = get_string(cfg_str, "LogPath=", "./server.log");
- vars.dos_log_path = get_string(cfg_str, "DosLogPath=", "./server_dos.log");
+ vars.log_path = get_string(cfg_str, "LogPath=", "");
+ vars.dos_log_path = get_string(cfg_str, "DosLogPath=", "");
vars.ignore_ssl_errors = get_int(cfg_str, "IgnoreSslErrors=", 0);
}
}
@@ -173,8 +173,8 @@ void config::load_upload_list(char *pth)
sprintf(result_f, "%02x",result[i]);
hash.append(result_f);
}
+ upload_list.push_back(upload_entry(source, destination, hash));
}
- upload_list.push_back(upload_entry(source, destination, hash));
p2 = cfg_str.find(';', p1);
}
}
diff --git a/server/server/config.h b/server/server/config.h
index 5da2b80..1c68427 100644
--- a/server/server/config.h
+++ b/server/server/config.h
@@ -138,6 +138,7 @@ private:
check_interval = 30;
debug = 0;
dos_conn_count = 200;
+ bind_ip = "0.0.0.0";
}
};
struct cli_cfg_data