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.
1 parent d4bb7ae commit 47f5ec7Copy full SHA for 47f5ec7
src/DotNetty.Transport/Channels/DefaultChannelId.cs
@@ -123,7 +123,7 @@ static byte[] ParseMachineId(string value)
123
var machineId = new byte[MachineIdLen];
124
for (int i = 0; i < value.Length; i += 2)
125
{
126
- machineId[i] = (byte)int.Parse(value.Substring(i, i + 2), NumberStyles.AllowHexSpecifier);
+ machineId[i] = (byte)int.Parse(value.Substring(i, 2), NumberStyles.AllowHexSpecifier);
127
}
128
return machineId;
129
@@ -251,4 +251,4 @@ public override bool Equals(object obj)
251
252
public override string ToString() => this.AsShortText();
253
254
-}
+}
0 commit comments