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 08dad4e9 authored by echicken's avatar echicken

Set initial TargetHostname to GetTelnetInterface() to go along with the

default TargetPort assignment.
If Port was specified in qs, and if it's our RLoginPort, then set
TargetHostname to GetRLoginInterface().
parent bb6022ca
......@@ -50,7 +50,7 @@ try {
SendToWebSocketClient(StringToBytes("Redirecting to server...\r\n"));
// Default to localhost on the telnet port
var TargetHostname = 'localhost';
var TargetHostname = GetTelnetInterface();
var TargetPort = GetTelnetPort();
// If fTelnet client sent a port on the querystring, try to use that
......@@ -62,6 +62,7 @@ try {
if ((RequestedPort > 0) && (RequestedPort <= 65535) && ((RequestedPort == GetTelnetPort()) || (RequestedPort == GetRLoginPort()))) {
TargetPort = RequestedPort;
log(LOG_DEBUG, "Using user-requested port " + Path.query.Port);
if (TargetPort == GetRLoginPort()) TargetHostname = GetRLoginInterface();
} else {
log(LOG_NOTICE, "Client requested to connect to port " + Path.query.Port + ", which was denied");
}
......
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