GithubHelp home page GithubHelp logo

Comments (9)

lekabyte avatar lekabyte commented on May 21, 2024

i have the same problem. did you solve it?

from opendax.

rubi022 avatar rubi022 commented on May 21, 2024

nop was I asked multiple times but no one seems to help.
Someone said an upgrade to the new version will solve it but did not work for me.

from opendax.

lekabyte avatar lekabyte commented on May 21, 2024

Here are my findings

docker container ip is detected up to barong 2.3.46. in 2.3.47 detects real client ip but websocket stops to work.

the diff between barong to detect real client ip is in file
"lib\barong\cloudflare_middleware.rb"

in 2.3.46: "ips = ips_from('HTTP_X_FORWARDED_FOR')"
in 2.3.47: "ips = ips_from(@env['HTTP_X_FORWARDED_FOR'])"

if you change this it will detect real client ip. but i can't get websocket to work. i get error described here: #132

tried also without using cloudflare service.

from opendax.

rubi022 avatar rubi022 commented on May 21, 2024

@lekabyte did you change to code?
What did you change do, Can you share the updated file here?

from opendax.

rubi022 avatar rubi022 commented on May 21, 2024

I am using 2.3.47 and I am getting cloudflare IP not users ip

from opendax.

lekabyte avatar lekabyte commented on May 21, 2024

i was using cloudflare too. but never got cloudflare ip. i got docker container ip instead. i got it fixed. don't have the best solution, but it works. i will post when i get back home what versions i am using and what i changed

from opendax.

rubi022 avatar rubi022 commented on May 21, 2024

@lekabyte thank you for your reply.
At first, I was getting docker. I made the changes after seeing your comment and now I am getting Cloudflare IP, I will wait for your post.

from opendax.

rubi022 avatar rubi022 commented on May 21, 2024

peatio: quay.io/openware/peatio:2.3.55
barong: quay.io/openware/barong:2.3.48

fixed it for me.

from opendax.

dpatsora avatar dpatsora commented on May 21, 2024

Hello
We are so sorry that we reply to you so late.
We fixed this issue in quay.io/openware/barong:2.3.48.

Sincerely yours,
Openware Team

from opendax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.