Implement IPCPrefixes

This makes it possible to not only listen on multiple different host/port combinations, but also different protocols or base URLs (even though this will probably break things up, need to do more tests)
This commit is contained in:
JustArchi
2018-02-12 22:07:02 +01:00
parent b06f7394da
commit 0cca2fd7b4
4 changed files with 20 additions and 27 deletions

View File

@@ -449,7 +449,12 @@ namespace ArchiSteamFarm {
goto default;
}
IPC.Start(GlobalConfig.IPCHost, GlobalConfig.IPCPort);
if (GlobalConfig.IPCPrefixes.Count == 0) {
ASF.ArchiLogger.LogGenericError(string.Format(Strings.ErrorIsEmpty, nameof(GlobalConfig.IPCPrefixes)));
break;
}
IPC.Start(GlobalConfig.IPCPrefixes);
break;
case "--service":
if (cryptKeyNext) {
@@ -471,6 +476,8 @@ namespace ArchiSteamFarm {
break;
}
}
IPC.Start(GlobalConfig.IPCPrefixes);
}
private static void ParsePreInitArgs(IReadOnlyCollection<string> args) {