Skip to content

Commit

Permalink
refactor: change alpn default
Browse files Browse the repository at this point in the history
  • Loading branch information
Itsusinn committed Sep 26, 2024
1 parent 3107385 commit 5d687cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
authors = ["EAimTY <ea.imty@gmail.com>", "Itsusinn <root@itsusin.eu.org>"]
version = "1.3.0"
version = "1.3.1"
rust-version = "1.80.0"
edition = "2021"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion tuic-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ certificate = "" # Default: ""
private_key = "" # Default: ""

# Application layer protocol negotiation
alpn = ["h3"] # Default: ["h3"]
alpn = ["h3"] # Default: empty

# See `RESTful API` section below in README.
# If you want disable RESTful function, remove entire `restful` section.
Expand Down
2 changes: 1 addition & 1 deletion tuic-server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub struct TlsConfig {
pub self_sign: bool,
pub certificate: PathBuf,
pub private_key: PathBuf,
#[educe(Default(expression = vec!["h3".into()]))]
#[educe(Default(expression = Vec::new()))]
pub alpn: Vec<String>,
}

Expand Down

0 comments on commit 5d687cd

Please sign in to comment.