Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions frostd/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ use clap::Parser;
#[command(author, version, about, long_about = None)]
pub struct Args {
/// IP to bind to.
///
/// If `no_tls_very_insecure` is set, it will bind to 127.0.0.1
/// regardless of the value passed here.
#[arg(short, long, default_value = "0.0.0.0")]
pub ip: String,

Expand Down Expand Up @@ -35,10 +32,6 @@ pub struct Args {
impl Args {
/// Get the effective IP to use, considering the arguments passed.
pub fn ip(&self) -> String {
if self.no_tls_very_insecure {
"127.0.0.1".to_string()
} else {
self.ip.clone()
}
self.ip.clone()
}
}
Loading