Skip to content

Commit

Permalink
Add configuration changes in mythtv-setup missed by a640d37
Browse files Browse the repository at this point in the history
This adds the configuration options for AllowLinkLocal to mythtv-setup,
supposed to have been part of a640d37, but missed during the commit.
Note to translators, this adds some additional strings.
  • Loading branch information
wagnerrp committed Jul 18, 2012
1 parent f1457cd commit b66f0cf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mythtv/programs/mythtv-setup/backendsettings.cpp
Expand Up @@ -41,6 +41,19 @@ static HostLineEdit *LocalServerIP6()
return gc;
}

static HostCheckBox *UseLinkLocal()
{
HostCheckBox *hc = new HostCheckBox("AllowLinkLocal");
hc->setLabel(QObject::tr("Listen on Link-Local addresses"));
hc->setValue(true);
hc->setHelpText(QObject::tr("Enable servers on this machine to listen on "
"link-local addresses. These are auto-configured "
"addresses and not accessible outside the local network. "
"This must be enabled for anything requiring Bonjour to "
"work."));
return hc;
};

static HostLineEdit *LocalServerPort()
{
HostLineEdit *gc = new HostLineEdit("BackendServerPort");
Expand Down Expand Up @@ -856,6 +869,10 @@ BackendSettings::BackendSettings() {
new HorizontalConfigurationGroup(false, false, true, true);
localIP6->addChild(LocalServerIP6());
localServer->addChild(localIP6);
HorizontalConfigurationGroup *localUseLL =
new HorizontalConfigurationGroup(false, false, true, true);
localUseLL->addChild(UseLinkLocal());
localServer->addChild(localUseLL);
HorizontalConfigurationGroup* localPorts =
new HorizontalConfigurationGroup(false, false, true, true);
localPorts->addChild(LocalServerPort());
Expand Down

0 comments on commit b66f0cf

Please sign in to comment.