Skip to content
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

Small fixes #179

Merged
merged 3 commits into from
Oct 5, 2021
Merged

Small fixes #179

merged 3 commits into from
Oct 5, 2021

Conversation

bepvte
Copy link
Contributor

@bepvte bepvte commented Oct 5, 2021

Small nitpicky changes that I had sitting around from work on the discord part that I switched away from

  • Use library way of finding real IP (we keep it in a wrapper in case we need to change to a different more secure method)
  • Reduce config format confusion (discord recommends keeping IDs as strings usually, and they are strings elsewhere in the config)
  • Remove nativetls support from reqwest, speeding up compile

Discord usually stores and processes its IDs in string formats anyway
We dont use it anywhere but reqwest
})
.ok_or(TelescopeError::IpExtractionError)
req.connection_info()
.realip_remote_addr()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@vcfxb vcfxb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor concern about changes to the XFF header handling but I think we should be fine!

@vcfxb vcfxb merged commit e53b685 into rcos:master Oct 5, 2021
@bepvte bepvte deleted the bep-small-fixes-1 branch October 5, 2021 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants