Skip to content

Commit 32194cb

Browse files
committed
Fix H2 validation
1 parent 6142335 commit 32194cb

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pony"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
build = "build.rs"
66

src/config/h2.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,11 @@ impl HysteriaServerConfig {
8484
return Err(PonyError::Custom("Hysteria2: listen is required".into()));
8585
}
8686

87-
let auth = self
87+
let _auth = self
8888
.auth
8989
.as_ref()
9090
.ok_or_else(|| PonyError::Custom("Hysteria2: auth section is required".into()))?;
9191

92-
if auth.password.clone().unwrap_or("".to_string()).is_empty() {
93-
return Err(PonyError::Custom(
94-
"Hysteria2: auth.password is required".into(),
95-
));
96-
}
97-
9892
Ok(())
9993
}
10094
}

0 commit comments

Comments
 (0)