Marzban icon indicating copy to clipboard operation
Marzban copied to clipboard

Marzban doesn't include Host for Trojan Web socket

Open Kiya6955 opened this issue 7 months ago • 1 comments

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 avatar Jul 23 '24 17:07 Kiya6955