mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-16 12:35:54 +00:00
1. **Fixed XPadding Placement Dropdown**: - Added the missing `cookie` and `query` options to `xPaddingPlacement` (`stream_xhttp.html`). - *Why:* Previously, users wanting `cookie` obfuscation were forced to use the `header` placement string. This caused Xray-core to blindly intercept the entire monolithic HTTP Cookie header, failing internal padding-length validations and causing the inbound to silently drop the connection. 2. **Fixed Uplink Data Placement Validation**: - Replaced the unsupported `query` option with `cookie` in `uplinkDataPlacement`. - *Why:* Xray-core's `transport_internet.go` explicitly forbids `query` as an uplink placement option. Selecting it from the UI previously sent a payload that would cause Xray-core to instantly throw an `unsupported uplink data placement: query` panic. Adding `cookie` perfectly aligns the UI with Xray-core restrictions. ### Related Issues - Resolves #3992
39 lines
1 KiB
Protocol Buffer
39 lines
1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package xray.proxy.socks;
|
|
option csharp_namespace = "Xray.Proxy.Socks";
|
|
option go_package = "github.com/xtls/xray-core/proxy/socks";
|
|
option java_package = "com.xray.proxy.socks";
|
|
option java_multiple_files = true;
|
|
|
|
import "common/net/address.proto";
|
|
import "common/protocol/server_spec.proto";
|
|
|
|
// Account represents a Socks account.
|
|
message Account {
|
|
string username = 1;
|
|
string password = 2;
|
|
}
|
|
|
|
// AuthType is the authentication type of Socks proxy.
|
|
enum AuthType {
|
|
// NO_AUTH is for anonymous authentication.
|
|
NO_AUTH = 0;
|
|
// PASSWORD is for username/password authentication.
|
|
PASSWORD = 1;
|
|
}
|
|
|
|
// ServerConfig is the protobuf config for Socks server.
|
|
message ServerConfig {
|
|
AuthType auth_type = 1;
|
|
map<string, string> accounts = 2;
|
|
xray.common.net.IPOrDomain address = 3;
|
|
bool udp_enabled = 4;
|
|
uint32 user_level = 6;
|
|
}
|
|
|
|
// ClientConfig is the protobuf config for Socks client.
|
|
message ClientConfig {
|
|
// Sever is a list of Socks server addresses.
|
|
xray.common.protocol.ServerEndpoint server = 1;
|
|
}
|