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

feat: detect public IP using ipify API #3

Merged
merged 3 commits into from
Mar 24, 2023
Merged

Conversation

chs2
Copy link
Collaborator

@chs2 chs2 commented Mar 24, 2023

When the demo player is run on the same machine as the demo server the player IP address detected by the server is a private one. In such a case a call is made to ifconfig.me to public IP address which will be actually detected and used by Dailymotion CDNs

When the demo player is run on the same machine as the demo server
the player IP address detected by the server is a private one.
In such a case a call is made to [ipify API](https://ipify.org) to public
IP address which will be actually detected and used by Dailymotion CDNs
…address

* origin/main:
  test: Add Github Actions
@chs2 chs2 requested a review from micaelmalta March 24, 2023 14:45
@chs2 chs2 merged commit 177b86c into main Mar 24, 2023
@chs2 chs2 deleted the fix/detect-public-ip-address branch March 24, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants