Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dragonfly-api"
version = "2.1.65"
version = "2.1.66"
authors = ["Gaius <gaius.qi@gmail.com>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
675 changes: 350 additions & 325 deletions pkg/apis/common/v2/common.pb.go

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions pkg/apis/common/v2/common.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pkg/apis/common/v2/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ message Host {
string ip = 4 [(validate.rules).string.ip = true];
// Port of grpc service.
int32 port = 5 [(validate.rules).int32 = {gte: 1024, lt: 65535}];
// Port of download server.
// Port of download server.
int32 download_port = 6 [(validate.rules).int32 = {gte: 1024, lt: 65535}];
// Host OS.
string os = 7;
Expand Down Expand Up @@ -369,6 +369,10 @@ message Host {
bool disable_shared = 18;
// Port of proxy server.
int32 proxy_port = 19;
// Port of tcp download service.
int32 download_tcp_port = 20 [(validate.rules).int32 = {gte: 1024, lt: 65535}];
// Port of quic download service.
int32 download_quic_port = 21 [(validate.rules).int32 = {gte: 1024, lt: 65535}];
}

// CPU Stat.
Expand Down
4 changes: 4 additions & 0 deletions proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ message Host {
bool disable_shared = 18;
// Port of proxy server.
int32 proxy_port = 19;
// Port of tcp download service.
int32 download_tcp_port = 20;
// Port of quic download service.
int32 download_quic_port = 21;
}

// CPU Stat.
Expand Down
6 changes: 6 additions & 0 deletions src/common.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,12 @@ pub struct Host {
/// Port of proxy server.
#[prost(int32, tag = "19")]
pub proxy_port: i32,
/// Port of tcp download service.
#[prost(int32, tag = "20")]
pub download_tcp_port: i32,
/// Port of quic download service.
#[prost(int32, tag = "21")]
pub download_quic_port: i32,
}
/// CPU Stat.
#[derive(serde::Serialize, serde::Deserialize)]
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.