mirror of
https://github.com/Jackett/Jackett
synced 2024-12-29 11:17:22 +00:00
Added change port argument to console app
This commit is contained in:
parent
91f80e054c
commit
705890d5ec
1 changed files with 10 additions and 7 deletions
|
@ -22,14 +22,17 @@ namespace JackettConsole
|
|||
{
|
||||
switch (args[0].ToLowerInvariant())
|
||||
{
|
||||
case "/i":
|
||||
case "/i": // install
|
||||
Engine.ServiceConfig.Install();
|
||||
return;
|
||||
case "/r":
|
||||
Engine.Server.ReserveUrls();
|
||||
case "/r": // reserve port/url & install
|
||||
Engine.Server.ReserveUrls(doInstall: true);
|
||||
return;
|
||||
case "/u":
|
||||
Engine.Server.ReserveUrls(false);
|
||||
case "/c": // change port
|
||||
Engine.Server.ReserveUrls(doInstall: false);
|
||||
return;
|
||||
case "/u": // uninstall
|
||||
Engine.Server.ReserveUrls(doInstall: false);
|
||||
Engine.ServiceConfig.Uninstall();
|
||||
return;
|
||||
}
|
||||
|
@ -40,9 +43,9 @@ namespace JackettConsole
|
|||
Engine.RunTime.Spin();
|
||||
Engine.Logger.Info("Server thread exit");
|
||||
}
|
||||
catch(Exception e)
|
||||
catch (Exception e)
|
||||
{
|
||||
Engine.Logger.Error(e, "Top level exception");
|
||||
Engine.Logger.Error(e, "Top level exception");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue