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

Marzban doesn't include Host for Trojan Web socket #1179

Open
Kiya6955 opened this issue Jul 23, 2024 · 1 comment
Open

Marzban doesn't include Host for Trojan Web socket #1179

Kiya6955 opened this issue Jul 23, 2024 · 1 comment
Labels
T: Bug Something isn't working

Comments

@Kiya6955
Copy link

Hi
When I set Host outside of header for Trojan Web socket inbounds no matter it's TLS or noTLS, marzban doesn't include host in configs and it leaves it empty so I have to set host manually in host settings.
Server inbound :

{
      "tag": "TROJAN WS Header NoTLs",
      "listen": "0.0.0.0",
      "port": 443,
      "protocol": "trojan",
      "settings": {
        "clients": []
      },
      "streamSettings": {
        "network": "ws",
        "wsSettings": {
          "path": "/",
          "host": "cloudflare.com"
        },

Generated Client inbound :

...
                "streamSettings": {
                    "network": "ws",
                    "security": "none",
                    "wsSettings": {
                        "headers": {},
                        "path": "/"
                    }
                }
...
@Kiya6955 Kiya6955 added the T: Bug Something isn't working label Jul 23, 2024
@M03ED
Copy link
Collaborator

M03ED commented Aug 11, 2024

i check this and i didn't found any explanation for this, you can use hosts settings for now.
i will check it again in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants