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

Commit 7183406f authored by Randy Sommerfeld's avatar Randy Sommerfeld

Reject connections if they're from "port zero"

parent d9796d62
......@@ -2725,6 +2725,12 @@ 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.");
return 1;
log(LOG_DEBUG,"Accepting new connection on port " + sock.local_port);
switch (sock.local_port) {
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