Skip to content

Commit

Permalink
Missing port from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Moksnes committed Jan 28, 2020
1 parent b601ad3 commit 55525b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ProxyWebModuleUnit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ procedure TProxyWebModule.GetLineup(const aLineup: TLineup);
lCetonConfig: TCetonConfig;
lRequestChannels: Boolean;
lListenIP: String;
lPort: Integer;
lChannelMap: TChannelMap;
begin
ConfigManager.LockConfig(lConfig);
Expand Down Expand Up @@ -327,6 +328,7 @@ procedure TProxyWebModule.GetLineup(const aLineup: TLineup);

ConfigManager.LockConfig(lConfig);
try
lPort := lConfig.HTTPPort;
lChannelMap.Assign(lConfig.Ceton.ChannelMap, False);
finally
ConfigManager.UnlockConfig(lConfig);
Expand All @@ -336,7 +338,7 @@ procedure TProxyWebModule.GetLineup(const aLineup: TLineup);
begin
lChannelMapItem := lChannelMap[i];
if lChannelMapItem.Visible then
aLineup.Add(IntToStr(lChannelMapItem.Channel), lChannelMapItem.Name, Format('http://%s/auto/v%d', [lListenIP, lChannelMapItem.Channel]));
aLineup.Add(IntToStr(lChannelMapItem.Channel), lChannelMapItem.Name, Format('http://%s:%d/auto/v%d', [lListenIP, lPort, lChannelMapItem.Channel]));
end;
finally
lChannelMap.Free;
Expand Down

0 comments on commit 55525b7

Please sign in to comment.