mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
feat: Add /getall, logging to .NET, fix manager not getting traveling world (#554)
* fix: Fix world-db not getting current world properly when traveling * fix: Stop redundant and exception-prone funcResult definition * Fix: fetching current location * refactor: Move constructing responseData to its own functions * Fix: ignore own string requests * feat: Add NLog dependency, and add some logging to .NET, mostly worlddb * fix: I missed a semicolon * refactor: Add more debug logging, change log format, archive less * feat: Add /getall endpoint --------- Co-authored-by: Natsumi <cmcooper123@hotmail.com>
This commit is contained in:
@@ -1017,6 +1017,10 @@ namespace VRCX
|
||||
|
||||
var stringData = line.Substring(lineOffset + check.Length);
|
||||
stringData = stringData.Remove(stringData.Length - 1);
|
||||
|
||||
if (stringData.StartsWith("http://127.0.0.1:22500") || stringData.StartsWith("http://localhost:22500"))
|
||||
return true; // ignore own requests
|
||||
|
||||
AppendLog(new[]
|
||||
{
|
||||
fileInfo.Name,
|
||||
@@ -1040,6 +1044,10 @@ namespace VRCX
|
||||
|
||||
var imageData = line.Substring(lineOffset + check.Length);
|
||||
imageData = imageData.Remove(imageData.Length - 1);
|
||||
|
||||
if (imageData.StartsWith("http://127.0.0.1:22500") || imageData.StartsWith("http://localhost:22500"))
|
||||
return true; // ignore own requests
|
||||
|
||||
AppendLog(new[]
|
||||
{
|
||||
fileInfo.Name,
|
||||
|
||||
Reference in New Issue
Block a user