Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (1)
...@@ -2719,8 +2719,8 @@ function accept_new_socket() { ...@@ -2719,8 +2719,8 @@ function accept_new_socket() {
sock = this.accept(); sock = this.accept();
if (!sock) { if (!sock) {
log(LOG_DEBUG,"!ERROR " + sock.error + " accepting connection"); log(LOG_DEBUG,format("!ERROR %s accepting connection", this.error));
return 1; return false;
} }
sock.array_buffer = false; /* JS78, we want strings */ sock.array_buffer = false; /* JS78, we want strings */
...@@ -2728,7 +2728,7 @@ function accept_new_socket() { ...@@ -2728,7 +2728,7 @@ function accept_new_socket() {
if (!sock.local_port) { if (!sock.local_port) {
log(LOG_DEBUG,"!ERROR Socket has no local port. Closing."); log(LOG_DEBUG,"!ERROR Socket has no local port. Closing.");
sock.close(); sock.close();
return 1; return false;
} }
log(LOG_DEBUG,"Accepting new connection on port " + sock.local_port); log(LOG_DEBUG,"Accepting new connection on port " + sock.local_port);
...@@ -2748,7 +2748,7 @@ function accept_new_socket() { ...@@ -2748,7 +2748,7 @@ function accept_new_socket() {
if (!sock.remote_ip_address) { if (!sock.remote_ip_address) {
log(LOG_DEBUG,"!ERROR Socket has no IP address. Closing."); log(LOG_DEBUG,"!ERROR Socket has no IP address. Closing.");
sock.close(); sock.close();
return 1; return false;
} }
if (IP_Banned(sock.remote_ip_address)) { if (IP_Banned(sock.remote_ip_address)) {
...@@ -2757,7 +2757,7 @@ function accept_new_socket() { ...@@ -2757,7 +2757,7 @@ function accept_new_socket() {
ServerName ServerName
)); ));
sock.close(); sock.close();
return 1; return false;
} }
if (server.client_add !== undefined) { if (server.client_add !== undefined) {
...@@ -2775,7 +2775,7 @@ function accept_new_socket() { ...@@ -2775,7 +2775,7 @@ function accept_new_socket() {
Unregistered[id] = unreg_obj; Unregistered[id] = unreg_obj;
return 0; return true;
} }
function Startup() { function Startup() {
......