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

Commit dc4a5f8a authored by Randy Sommerfeld's avatar Randy Sommerfeld

Check for 'port zero' on the remote port as well

parent 32a29523
......@@ -2725,8 +2725,8 @@ function accept_new_socket() {
sock.array_buffer = false; /* JS78, we want strings */
if (!sock.local_port) {
log(LOG_DEBUG,"!ERROR Socket has no local port. Closing.");
if (!sock.local_port || !sock.remote_port) {
log(LOG_DEBUG,"!ERROR Socket seems to have no port. Closing.");
sock.close();
return false;
}
......
Markdown is supported
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