mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 11:36:35 +08:00
智能DNS实现DoH功能
This commit is contained in:
@@ -9,9 +9,10 @@ message NSCluster {
|
||||
bool isOn = 2;
|
||||
string name = 3;
|
||||
string installDir = 4;
|
||||
bytes tcpJSON = 5;
|
||||
bytes tlsJSON = 6;
|
||||
bytes udpJSON = 7;
|
||||
bytes tcpJSON = 5; // TCP设置
|
||||
bytes tlsJSON = 6; // TLS设置
|
||||
bytes udpJSON = 7; // UDP设置
|
||||
bytes dohJSON = 16; // DoH设置
|
||||
repeated string hosts = 8;
|
||||
bytes soaJSON = 12;
|
||||
string email = 13;
|
||||
|
||||
@@ -59,6 +59,12 @@ service NSClusterService {
|
||||
// 修改集群的UDP设置
|
||||
rpc updateNSClusterUDP (UpdateNSClusterUDPRequest) returns (RPCSuccess);
|
||||
|
||||
// 查找集群的DoH设置
|
||||
rpc findNSClusterDoHConfig(FindNSClusterDoHConfigRequest) returns (FindNSClusterDoHConfigResponse);
|
||||
|
||||
// 修改集群的DoH设置
|
||||
rpc updateNSClusterDoH (UpdateNSClusterDoHRequest) returns (RPCSuccess);
|
||||
|
||||
// 计算使用某个SSL证书的集群数量
|
||||
rpc countAllNSClustersWithSSLCertId (CountAllNSClustersWithSSLCertIdRequest) returns (RPCCountResponse);
|
||||
|
||||
@@ -207,6 +213,15 @@ message FindNSClusterUDPConfigResponse {
|
||||
bytes udpJSON = 1;
|
||||
}
|
||||
|
||||
// 查找集群的DoH设置
|
||||
message FindNSClusterDoHConfigRequest {
|
||||
int64 nsClusterId = 1;
|
||||
}
|
||||
|
||||
message FindNSClusterDoHConfigResponse {
|
||||
bytes dohJSON = 1;
|
||||
}
|
||||
|
||||
// 修改集群的TCP设置
|
||||
message UpdateNSClusterTCPRequest {
|
||||
int64 nsClusterId = 1;
|
||||
@@ -225,6 +240,12 @@ message UpdateNSClusterUDPRequest {
|
||||
bytes udpJSON = 2;
|
||||
}
|
||||
|
||||
// 修改集群的DoH设置
|
||||
message UpdateNSClusterDoHRequest {
|
||||
int64 nsClusterId = 1;
|
||||
bytes dohJSON = 2;
|
||||
}
|
||||
|
||||
// 计算使用某个SSL证书的集群数量
|
||||
message CountAllNSClustersWithSSLCertIdRequest {
|
||||
int64 sslCertId = 1;
|
||||
|
||||
Reference in New Issue
Block a user