Gozargah / Marzban

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

Support grpc mode - gun or multi #659

Closed Lordrichard23 closed 2 months ago

Lordrichard23 commented 9 months ago

Please add multi mode support for grpc transmission to the panel, because this feature creates better stability and speed in connecting the configurations to the Internet.

I tried to add this feature to the xray core in the panel, but I noticed that even if it is added to the core, the feature is not enabled in the config made by the panel. I suggest to add this feature like utls or alpn in the host setting. Thanks.

YamlEngineer commented 9 months ago

For now, you can use this piece of code in the app/utils/share.py file

if net == 'grpc':
    payload['type'] = 'multi'

and add it to the container as a volume in Docker.

volumes:
     - ./share.py:/code/app/utils/share.py
amebrahimi commented 9 months ago

@Lordrichard23 Can you please send a sample of the xray configuration you were trying to make?

realartin commented 5 months ago

app/utils/share.py

where is this file in installation version on server ?

YamlEngineer commented 2 months ago

Everything is clear ☹️

M03ED commented 2 months ago

Everything is clear ☹️

yes it is 12b21b1