Gozargah / Marzban

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

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

Closed Kiya6955 closed 3 weeks ago

Kiya6955 commented 3 months ago

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": "/"
                    }
                }
...
M03ED commented 2 months ago

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.

M03ED commented 3 weeks ago

Fixed.