Skip to content

Commit

Permalink
Only set the BackendServerIP6 setting to ::1 by default if that addre…
Browse files Browse the repository at this point in the history
…ss is available, otherwise leave it blank
  • Loading branch information
stuartm committed Oct 6, 2012
1 parent 33d2b05 commit 6902966
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mythtv/programs/mythtv-setup/backendsettings.cpp
Expand Up @@ -27,7 +27,7 @@ static HostLineEdit *LocalServerIP6()
{
HostLineEdit *gc = new HostLineEdit("BackendServerIP6");
gc->setLabel(QObject::tr("IPv6 address"));
gc->setValue("::1");
gc->setValue("");
gc->setHelpText(QObject::tr("Enter the IPv6 address of this machine. "
"Use an externally accessible address (ie, not "
"::1) if you are going to be running a frontend "
Expand All @@ -36,7 +36,11 @@ static HostLineEdit *LocalServerIP6()
gc->setEnabled(false);
#else
if (ServerPool::DefaultListenIPv6().isEmpty())
{
gc->setEnabled(false);
}
else if (ServerPool::DefaultListenIPv6().contains(QHostAddress("::1")))
gc->setValue("::1");
#endif
return gc;
}
Expand Down

0 comments on commit 6902966

Please sign in to comment.