[GH-ISSUE #773] Accept proxy protocol #506

Closed
opened 2026-10-31 20:12:30 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @arsham6ix on GitHub (Jul 18, 2023).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/773

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I have read all WIKI document,nothing can help me in my problem.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

Description of the problem,screencshot would be good

درود خدمت شما ، ممنون بابت اپدیت پنل ، راجب مسئله Accept proxy protocol باید بگم که من جیسون رو چک کردم و فهمیدم که یک قسمت جای درستی قرار نگرفته و خواستم گزارش بدم بابت ایمیل قبلی که زحمت کشیدید بهم دادید.

اگه کد های جیسون رو چک کنید میبینید که قسمت مورد نظر به بلاک grpcSettings در grpc و در h2 به بلاک httpSettings اضافه شده که این ۲ تا بلاک هم زیر شاخه streamSettings هستند 👇
"sockopt": { "acceptProxyProtocol": false }
بلاک sockopt خود مختار هست و نباید به این بلاک ها که معرفی کردم اضافه بشن ، باید به خود streamSettings اضافه بشه ، برای نمونه هم من ۲ تا عکس میزارم زیر این متن

photo_2023-07-18_13-08-28

photo_2023-07-18_13-07-32

Version of 3x-ui

1.7.1

x-ui log reports or xray log

..

Originally created by @arsham6ix on GitHub (Jul 18, 2023). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/773 ### Welcome - [X] Yes, I'm using the latest major release. Only such installations are supported. - [X] Yes, I'm using the supported system. Only such systems are supported. - [X] Yes, I have read all WIKI document,nothing can help me in my problem. - [X] Yes, I've searched similar issues on GitHub and didn't find any. - [X] Yes, I've included all information below (version, config, log, etc). ### Description of the problem,screencshot would be good درود خدمت شما ، ممنون بابت اپدیت پنل ، راجب مسئله Accept proxy protocol باید بگم که من جیسون رو چک کردم و فهمیدم که یک قسمت جای درستی قرار نگرفته و خواستم گزارش بدم بابت ایمیل قبلی که زحمت کشیدید بهم دادید. اگه کد های جیسون رو چک کنید میبینید که قسمت مورد نظر به بلاک grpcSettings در grpc و در h2 به بلاک httpSettings اضافه شده که این ۲ تا بلاک هم زیر شاخه streamSettings هستند 👇 `` "sockopt": { "acceptProxyProtocol": false } `` بلاک sockopt خود مختار هست و نباید به این بلاک ها که معرفی کردم اضافه بشن ، باید به خود streamSettings اضافه بشه ، برای نمونه هم من ۲ تا عکس میزارم زیر این متن ![photo_2023-07-18_13-08-28](https://github.com/MHSanaei/3x-ui/assets/89599368/cba52e8c-05f7-4d26-80a9-40c9d0fb85a2) ![photo_2023-07-18_13-07-32](https://github.com/MHSanaei/3x-ui/assets/89599368/0b148b4f-be00-4425-a1b2-52ec34f64ffd) ### Version of 3x-ui 1.7.1 ### x-ui log reports or xray log ..
Author
Owner

@arsham6ix commented on GitHub (Jul 25, 2023):

TCP 👇
inbounds[0].streamSettings.sockopt.acceptProxyProtocol=true
gRPC, H2 👇
inbounds[0].streamSettings.sockopt.acceptProxyProtocol=true

<!-- gh-comment-id:1649448399 --> @arsham6ix commented on GitHub (Jul 25, 2023): TCP 👇 inbounds[0].streamSettings.sockopt.acceptProxyProtocol=true gRPC, H2 👇 inbounds[0].streamSettings.sockopt.acceptProxyProtocol=true
Author
Owner

@MHSanaei commented on GitHub (Jul 29, 2023):

done

<!-- gh-comment-id:1656718681 --> @MHSanaei commented on GitHub (Jul 29, 2023): done
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#506
No description provided.