We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5e4064 + 1da02f2 commit 67d3d98Copy full SHA for 67d3d98
Assets/HoloToolkit/Sharing/Scripts/Utilities/ManualIpConfiguration.cs
@@ -10,6 +10,11 @@ namespace HoloToolkit.Sharing.Utilities
10
/// </summary>
11
public class ManualIpConfiguration : MonoBehaviour
12
{
13
+ /// <summary>
14
+ /// The maximum length of characters in a IPv4 address.
15
+ /// </summary>
16
+ private const int MaximumCharacterLength = 12;
17
+
18
public string IpAddress { get { return ipAddress.text; } }
19
20
/// <summary>
@@ -152,7 +157,7 @@ public void InputString(string input)
152
157
ipAddress.text = string.Empty;
153
158
}
154
159
155
- if (ipAddress.text.Length < 15)
160
+ if (ipAddress.text.Length < MaximumCharacterLength)
156
161
162
ipAddress.text += input;
163
0 commit comments