mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Enhance DNS and Dialer (#341)
This commit is contained in:
parent
ad1807dd99
commit
db32ce6fd9
22 changed files with 682 additions and 290 deletions
|
@ -17,6 +17,13 @@ enum TransportProtocol {
|
|||
DomainSocket = 5;
|
||||
}
|
||||
|
||||
enum DomainStrategy {
|
||||
AS_IS = 0;
|
||||
USE_IP = 1;
|
||||
USE_IP4 = 2;
|
||||
USE_IP6 = 3;
|
||||
}
|
||||
|
||||
message TransportConfig {
|
||||
// Type of network that this settings supports.
|
||||
// Deprecated. Use the string form below.
|
||||
|
@ -47,7 +54,10 @@ message StreamConfig {
|
|||
SocketConfig socket_settings = 6;
|
||||
}
|
||||
|
||||
message ProxyConfig { string tag = 1; }
|
||||
message ProxyConfig {
|
||||
string tag = 1;
|
||||
bool transportLayerProxy = 2;
|
||||
}
|
||||
|
||||
// SocketConfig is options to be applied on network sockets.
|
||||
message SocketConfig {
|
||||
|
@ -78,4 +88,7 @@ message SocketConfig {
|
|||
uint32 bind_port = 6;
|
||||
|
||||
bool accept_proxy_protocol = 7;
|
||||
|
||||
DomainStrategy domain_strategy = 8;
|
||||
string dialer_proxy = 9;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue