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 e1b902b7 authored by deuce's avatar deuce
Browse files

Use ListeningSocket() for ircd in jsexec.

parent e7d6a56c
...@@ -852,8 +852,15 @@ function read_conf_config(fname) { ...@@ -852,8 +852,15 @@ function read_conf_config(fname) {
} }
function create_new_socket(port) { function create_new_socket(port) {
var newsock;
log(LOG_DEBUG,"Creating new socket object on port " + port); log(LOG_DEBUG,"Creating new socket object on port " + port);
var newsock = new Socket(); if (js.global.ConnectedSocket != undefined) {
newsock = new ListeningSocket(server.interface_ip_address, port, "IRCd");
log(format("IRC server socket bound to TCP port " + port);
}
else {
newsock = new Socket();
if(!newsock.bind(port,server.interface_ip_address)) { if(!newsock.bind(port,server.interface_ip_address)) {
log(LOG_ERR,"!Error " + newsock.error + " binding socket to TCP port " log(LOG_ERR,"!Error " + newsock.error + " binding socket to TCP port "
+ port); + port);
...@@ -866,6 +873,7 @@ function create_new_socket(port) { ...@@ -866,6 +873,7 @@ function create_new_socket(port) {
+ " setting up socket for listening"); + " setting up socket for listening");
return 0; return 0;
} }
}
return newsock; return newsock;
} }
......
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