Skip to content

Commit

Permalink
feat: Added validation of AmplificationPadding settings
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoTenPvP committed Sep 4, 2019
1 parent 5c584a3 commit 29f0904
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Ruffles/Configuration/SocketConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ public List<string> GetInvalidConfiguration()
messages.Add("MaxMergeMessageSize cannot be greater than MaxMessageSize");
}

if (AmplificationPreventionHandshakePadding > MaxMessageSize)
{
messages.Add("AmplificationPreventionHandshakePadding cannot be greater than MaxMessageSize");
}

return messages;
}
}
Expand Down

0 comments on commit 29f0904

Please sign in to comment.