mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Sockopt: Add addressPortStrategy
(query SRV or TXT) (#4416)
Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com>
This commit is contained in:
parent
8d46f7e14c
commit
b9cb93d3c2
4 changed files with 280 additions and 64 deletions
|
@ -23,6 +23,16 @@ enum DomainStrategy {
|
|||
FORCE_IP64 = 10;
|
||||
}
|
||||
|
||||
enum AddressPortStrategy {
|
||||
None = 0;
|
||||
SrvPortOnly = 1;
|
||||
SrvAddressOnly = 2;
|
||||
SrvPortAndAddress = 3;
|
||||
TxtPortOnly = 4;
|
||||
TxtAddressOnly = 5;
|
||||
TxtPortAndAddress = 6;
|
||||
}
|
||||
|
||||
message TransportConfig {
|
||||
// Transport protocol name.
|
||||
string protocol_name = 3;
|
||||
|
@ -116,4 +126,6 @@ message SocketConfig {
|
|||
bool tcp_mptcp = 19;
|
||||
|
||||
repeated CustomSockopt customSockopt = 20;
|
||||
|
||||
AddressPortStrategy address_port_strategy = 21;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue