Skip to content

Commit 69198ca

Browse files
committed
Remote Web Server: "0.0.0.0" renamed to "localhost"
1 parent 4dc1fa6 commit 69198ca

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

OpenHardwareMonitor/UI/InterfacePortForm.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public partial class InterfacePortForm : Form
1010
{
1111
private readonly MainForm _parent;
1212
private string _localIP;
13-
13+
1414
public InterfacePortForm(MainForm m)
1515
{
1616
InitializeComponent();
@@ -22,16 +22,15 @@ public InterfacePortForm(MainForm m)
2222

2323
private string LoadNetworkInterfaces(string selectedListenerIp)
2424
{
25-
IPHostEntry host;
2625
interfaceComboBox.Items.Clear();
27-
host = Dns.GetHostEntry(Dns.GetHostName());
26+
IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName());
2827
foreach (IPAddress ip in host.AddressList)
2928
{
3029
if (ip.AddressFamily == AddressFamily.InterNetwork)
3130
interfaceComboBox.Items.Add(ip.ToString());
3231
}
3332

34-
interfaceComboBox.Items.Add("0.0.0.0");
33+
interfaceComboBox.Items.Add("localhost");
3534

3635
// select the last one by default to match the existing behavior
3736
if (interfaceComboBox.Items.Count > 0)

0 commit comments

Comments
 (0)