Skip to content

Commit

Permalink
fix notify param
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz committed Jun 19, 2022
1 parent cafa9f1 commit c843694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub async fn init_client(req: Request<Body>) -> Result<Response<Body>> {
.get("weight")
.map(|p| p.parse::<u64>().unwrap_or(0_u64))
.unwrap_or(0_u64);
let notify = params.get("notify").map(|p| p.eq("0")).unwrap_or(true);
let notify = params.get("notify").map(|p| !p.eq("0")).unwrap_or(true);
let host_type = params.get("type").unwrap_or(&invalid);
let location = params.get("loc").unwrap_or(&invalid);

Expand Down

0 comments on commit c843694

Please sign in to comment.