Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vletroye committed Jun 16, 2020
1 parent 6d57cee commit 0c7ddd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Mods/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,11 @@ private void LoadPackageConfig(string path)
{
if (item.Value.itemType == -1)
if (item.Value.type == "legacy") item.Value.itemType = (int)UrlType.WebApp;
if (item.Value.url == null)
{
//if (!string.IsNullOrEmpty(item.Value.port))
item.Value.url = "/";
}
var webapp = item.Value.url;
if (webapp.StartsWith("/webman/3rdparty/"))
{
Expand Down
2 changes: 1 addition & 1 deletion Mods/Workers/PortConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ private void checkBoxPortConfig_Click(object sender, EventArgs e)
{
if (origPortConfig == null)
{
SetPortConfig(JObject.Parse(string.Format("{\"protocol-file\": \"etc/{0}.sc\"}", packageName)), null);
SetPortConfig(JObject.Parse(string.Format("{{\"protocol-file\": \"etc/{0}.sc\"}}", packageName)), null);
}
else
{
Expand Down

0 comments on commit 0c7ddd2

Please sign in to comment.