Merge branch 'master' of https://github.com/EQEmu/Server into lsid

This commit is contained in:
Akkadius 2019-09-07 01:03:13 -05:00
commit b8216a5d40
2 changed files with 21 additions and 9 deletions

View File

@ -470,9 +470,19 @@ sub do_installer_routines {
print `"$path" --host $host --user $user --password="$pass" -N -B -e "DROP DATABASE IF EXISTS $db_name;"`;
print `"$path" --host $host --user $user --password="$pass" -N -B -e "CREATE DATABASE $db_name"`;
my $world_path = "world";
if (-e "bin/world") {
$world_path = "bin/world";
}
#::: Get Binary DB version
if ($OS eq "Windows") { @db_version = split(': ', `world db_version`); }
if ($OS eq "Linux") { @db_version = split(': ', `./world db_version`); }
if ($OS eq "Windows") {
@db_version = split(': ', `$world_path db_version`);
}
if ($OS eq "Linux") {
@db_version = split(': ', `./$world_path db_version`);
}
$binary_database_version = trim($db_version[1]);
#::: Local DB Version

View File

@ -444,13 +444,15 @@ int main(int argc, char** argv) {
server_connection->Listen(server_opts);
LogInfo("Server (TCP) listener started");
server_connection->OnConnectionIdentified("Zone", [&console](std::shared_ptr<EQ::Net::ServertalkServerConnection> connection) {
LogInfo("New Zone Server connection from [{2}] at [{0}:{1}]",
connection->Handle()->RemoteIP(), connection->Handle()->RemotePort(), connection->GetUUID());
server_connection->OnConnectionIdentified(
"Zone", [&console](std::shared_ptr<EQ::Net::ServertalkServerConnection> connection) {
LogInfo("New Zone Server connection from [{2}] at [{0}:{1}]",
connection->Handle()->RemoteIP(), connection->Handle()->RemotePort(), connection->GetUUID());
numzones++;
zoneserver_list.Add(new ZoneServer(connection, console.get()));
});
numzones++;
zoneserver_list.Add(new ZoneServer(connection, console.get()));
}
);
server_connection->OnConnectionRemoved("Zone", [](std::shared_ptr<EQ::Net::ServertalkServerConnection> connection) {
LogInfo("Removed Zone Server connection from [{0}]",
@ -498,7 +500,7 @@ int main(int argc, char** argv) {
});
server_connection->OnConnectionRemoved("UCS", [](std::shared_ptr<EQ::Net::ServertalkServerConnection> connection) {
LogInfo("Removed Query Server connection from [{0}]",
LogInfo("Removed UCS Server connection from [{0}]",
connection->GetUUID());
UCSLink.SetConnection(nullptr);