Gozargah / Marzban

Unified GUI Censorship Resistant Solution Powered by Xray
https://t.me/gozargah_marzban
GNU Affero General Public License v3.0
3.73k stars 517 forks source link

IPv6 Support for Marzban-Node #1347

Open Ashaxer opened 1 month ago

Ashaxer commented 1 month ago

In main.py file inside Marzban-Node docker container, "0.0.0.0" is used as host in uvicorn.run() Please make it configurable with .env (just like main Marzban) or change it to "::" to make it listen to IPv6 network Interface too.

fodhelper commented 1 month ago

Are you sure "::" makes it to listen to both IP versions? some users at uvicorn repo said it must be like uvicorn.run(app, host=["::", "0.0.0.0"], port=8080)

anyway, you can PR it to https://github.com/Gozargah/Marzban-node

Ashaxer commented 1 month ago

I can't PR, I'm newbie in these things. I cannot even fix it on my own server... It will be appreciated if you do it. Thank you!