Sockopt: Add addressPortStrategy (query SRV or TXT) (#4416)

Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com>
This commit is contained in:
j3l11234 2025-03-02 21:07:55 +08:00 committed by GitHub
parent 8d46f7e14c
commit b9cb93d3c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 280 additions and 64 deletions

View file

@ -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;
}