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 35cfb788 authored by deuce's avatar deuce

Use server.interface_ip_addr_list and set to [0,"::"] when jsexec.

parent 746dcc7e
......@@ -174,7 +174,7 @@ if(this.server==undefined) { // Running from JSexec?
default_port = mline_port;
server = { socket: false, terminated: false,
version_detail: jsexec_revision_detail };
version_detail: jsexec_revision_detail, interface_ip_addr_list: [0,"::"] };
server.socket = create_new_socket(default_port)
if (!server.socket)
exit();
......@@ -855,8 +855,8 @@ function create_new_socket(port) {
var newsock;
log(LOG_DEBUG,"Creating new socket object on port " + port);
if (js.global.ConnectedSocket != undefined) {
newsock = new ListeningSocket(server.interface_ip_address, port, "IRCd");
if (js.global.ListeningSocket != undefined) {
newsock = new ListeningSocket(server.interface_ip_addr_list, port, "IRCd");
log(format("IRC server socket bound to TCP port " + port));
}
else {
......
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