Skip to content

Commit ade35a8

Browse files
Add warning when hookshot is in "insecure" mode
1 parent 9e9aa24 commit ade35a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cli.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ pub fn main() {
6363
if matches.opt_present("h") {
6464
return print_usage(&program, opts);
6565
}
66+
if skip_signature_check() {
67+
println!("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
68+
println!("hookshot is running in insecure mode, signatures will not be checked");
69+
println!("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
70+
}
6671
let config_file = match matches.opt_str("c") {
6772
Some(file) => file,
6873
None => {

0 commit comments

Comments
 (0)