-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add rate limiter #201
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: haveachin <[email protected]>
Signed-off-by: haveachin <[email protected]>
Signed-off-by: haveachin <[email protected]>
haveachin
added a commit
that referenced
this pull request
Feb 2, 2024
* revise: codebase * fix: remove old .vscode and .github dir * feat: cache status response packet * add scripts folder with a simple test script inside of it * simplefy `RespondeToServerRequest` a little * improve readability hash implemetation of status cache * Implement sending proxy protocol header to backend server for login requests. * remove redundant test script * remove pk.WriteTo(hash) statement and remove redundant Sum64 call of hash * don't expose cacheResponse method for now * refactor: one port to bind them all (#197) * refactor: listener to only one * refactor: into methods * feat: add config file loading (#194) * feat: add rate limiter (#201) * feat: add server addresses * feat: add config file loading * fix: proxy protocol Signed-off-by: haveachin <[email protected]> * feat: add rate limiter Signed-off-by: haveachin <[email protected]> * refactor: middleware to filter Signed-off-by: haveachin <[email protected]> * refactor: more testability * refactor: listener to only one * refactor: config files * feat: add config file loading * refactor: filter for only one listener * feat: add docs * docs: add config docs * refactor: file loading * refactor: remove unnecessary mutex * docs: clean up readme * feat: add linting, ci and release automation * docs: add rate limiter * fix: linting errors * fix: linting errors * fix: linting errors * chore: clean up * refactor: ServerRequester * feat: add zerolog * chore: clean up --------- Signed-off-by: haveachin <[email protected]> --------- Signed-off-by: haveachin <[email protected]> Co-authored-by: realDragonium <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a filter feature to Infrared that allows Infrared to filter connections they are processed. In this PR a rate limiter filter is added to limit the amount of connections an IP can make per second.
This PR also brings linting, CI and build automation.
Blocked by #194