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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user