Skip to content

Commit fab5774

Browse files
server: Execute caps code after parsing args
1 parent e8208b5 commit fab5774

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ struct Args {
3232
#[tokio::main]
3333
async fn main() -> Result<(), Error> {
3434
tracing_subscriber::fmt::init();
35-
capability::drop_unnecessary_capabilities()?;
3635

3736
let args = Args::parse();
3837
let mut secret = None;
3938

39+
capability::drop_unnecessary_capabilities()?;
40+
4041
if args.login {
4142
let password = rpassword::prompt_password("Enter the login password: ")?;
4243
if password.is_empty() {

0 commit comments

Comments
 (0)