IPv6 fixes:

- Fixed IPv6 addresses being clipped from the end in the server list screen because the IP textbox was too small to fit them.
- Fixed clients parsing IPv6 addresses wrong because they assumed the first ":" in the address is the separator between the IP and port.
This commit is contained in:
Joonas Rikkonen
2018-11-24 19:35:45 +02:00
parent 0463e2d9cf
commit f3409f067d
2 changed files with 13 additions and 11 deletions
@@ -64,7 +64,11 @@ namespace Barotrauma
clientNameBox.Text = GameMain.Config.DefaultPlayerName;
new GUITextBlock(new Rectangle(0, 100, 0, 30), TextManager.Get("ServerIP"), "", menu);
ipBox = new GUITextBox(new Rectangle(0, 130, 200, 30), "", menu);
ipBox = new GUITextBox(new Rectangle(0, 130, 200, 30), "", menu)
{
//max IPv6 address length + port
MaxTextLength = 45 + 6
};
int middleX = (int)(width * 0.35f);