Skip to content

Commit b08fbaf

Browse files
committed
fix(frontend): expose missing server address
1 parent 6ec01dc commit b08fbaf

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

MCServerLauncher.WPF/InstanceConsole/View/Components/MinecraftInstanceAddress.xaml.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public async Task RefreshAsync()
9393
}
9494
else
9595
{
96-
// Default to local address
97-
ServerIP = "127.0.0.1";
96+
ServerIP = Lang.Tr["Status_LoadFailed"];
97+
return;
9898
}
9999

100100
// Add port if available
@@ -103,6 +103,10 @@ public async Task RefreshAsync()
103103
ServerIP = $"{ServerIP}:{serverPort}";
104104
}
105105
}
106+
else
107+
{
108+
ServerIP = Lang.Tr["Status_LoadFailed"];
109+
}
106110

107111
await Task.CompletedTask;
108112
}
@@ -119,4 +123,4 @@ private void ToggleIP(object sender, RoutedEventArgs e)
119123
ToggleIPButton.Content = AddressTextBox.Visibility == Visibility.Hidden ? Lang.Tr["ClickToView"] : Lang.Tr["ClickToHide"];
120124
}
121125
}
122-
}
126+
}

0 commit comments

Comments
 (0)