Added UI for allowing external access, stop server listening on the old port when changing ports. Config migration bug fixes.

This commit is contained in:
KZ
2015-07-24 20:15:08 +01:00
parent 84c2b0c8b9
commit 960720b3e4
15 changed files with 149 additions and 37 deletions

View File

@@ -54,6 +54,7 @@ namespace JackettConsole
// Reserve urls
if (options.ReserveUrls)
{
Engine.ConfigService.CreateOrMigrateSettings();
Engine.Server.ReserveUrls(doInstall: true);
return;
}
@@ -78,6 +79,16 @@ namespace JackettConsole
return;
}
// Migrate settings
if (options.MigrateSettings)
{
if (Engine.ServiceConfig.ServiceRunning())
{
Engine.ConfigService.PerformMigration();
}
return;
}
// Show Version
if (options.ShowVersion)
@@ -125,6 +136,8 @@ namespace JackettConsole
return;
}
}
Engine.Server.SaveConfig();
}
}
@@ -147,6 +160,8 @@ namespace JackettConsole
return;
}
}
Engine.Server.SaveConfig();
}
}
}