Skip to content

Commit

Permalink
fix: missing protocol is fine with dns
Browse files Browse the repository at this point in the history
  • Loading branch information
phra committed May 27, 2019
1 parent c05e2c3 commit a5d2aab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,10 @@ fn main() {
}
},
None => {
error!("Invalid URL: missing protocol, consider adding http:// or https://");
return;
if mode != "dns" {
error!("Invalid URL: missing protocol, consider adding http:// or https://");
return;
}
},
}
},
Expand Down

0 comments on commit a5d2aab

Please sign in to comment.