mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-12-16 20:27:04 +03:00
Some checks failed
Scheduled assets update / geodat (push) Has been cancelled
Build and Release for Windows 7 / check-assets (push) Has been cancelled
Build and Release / check-assets (push) Has been cancelled
Test / check-assets (push) Has been cancelled
Build and Release for Windows 7 / build (win7-32, 386, windows) (push) Has been cancelled
Build and Release for Windows 7 / build (win7-64, amd64, windows) (push) Has been cancelled
Build and Release / build (386, freebsd, ) (push) Has been cancelled
Build and Release / build (386, linux, ) (push) Has been cancelled
Build and Release / build (386, openbsd, ) (push) Has been cancelled
Build and Release / build (386, windows, ) (push) Has been cancelled
Build and Release / build (amd64, android, android-amd64) (push) Has been cancelled
Build and Release / build (amd64, darwin, ) (push) Has been cancelled
Build and Release / build (amd64, freebsd, ) (push) Has been cancelled
Build and Release / build (amd64, linux, ) (push) Has been cancelled
Build and Release / build (amd64, openbsd, ) (push) Has been cancelled
Build and Release / build (amd64, windows, ) (push) Has been cancelled
Build and Release / build (arm, 5, linux) (push) Has been cancelled
Build and Release / build (arm, 6, linux) (push) Has been cancelled
Build and Release / build (arm, 7, freebsd) (push) Has been cancelled
Build and Release / build (arm, 7, linux) (push) Has been cancelled
Build and Release / build (arm, 7, openbsd) (push) Has been cancelled
Build and Release / build (arm, 7, windows) (push) Has been cancelled
Build and Release / build (arm64, android) (push) Has been cancelled
Build and Release / build (arm64, darwin) (push) Has been cancelled
Build and Release / build (arm64, freebsd) (push) Has been cancelled
Build and Release / build (arm64, linux) (push) Has been cancelled
Build and Release / build (arm64, openbsd) (push) Has been cancelled
Build and Release / build (arm64, windows) (push) Has been cancelled
Build and Release / build (loong64, linux) (push) Has been cancelled
Build and Release / build (mips, linux) (push) Has been cancelled
Build and Release / build (mips64, linux) (push) Has been cancelled
Build and Release / build (mips64le, linux) (push) Has been cancelled
Build and Release / build (mipsle, linux) (push) Has been cancelled
Build and Release / build (ppc64, linux) (push) Has been cancelled
Build and Release / build (ppc64le, linux) (push) Has been cancelled
Build and Release / build (riscv64, linux) (push) Has been cancelled
Build and Release / build (s390x, linux) (push) Has been cancelled
Test / test (macos-latest) (push) Has been cancelled
Test / test (ubuntu-latest) (push) Has been cancelled
Test / test (windows-latest) (push) Has been cancelled
https://github.com/XTLS/Xray-core/pull/5124#issuecomment-3281091009 Fixes https://github.com/XTLS/Xray-core/pull/5124#pullrequestreview-3218097421
40 lines
1.0 KiB
Protocol Buffer
40 lines
1.0 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;
|
|
}
|