Skip to content

Commit

Permalink
Fix: 引数を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed May 31, 2024
1 parent 40e78c8 commit 473eaa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/cantari/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ struct Cli {
/// ポート番号。
#[clap(short, long, default_value = "50202")]
port: u16,
/// ホスト名。
#[clap(short, long, default_value = "127.0.0.1")]
host: String,
}

#[tokio::main]
Expand Down Expand Up @@ -109,7 +112,7 @@ async fn main_impl(args: Cli) -> Result<()> {
.on_response(trace::DefaultOnResponse::new().level(Level::INFO)),
);

let addr = SocketAddr::from(([127, 0, 0, 1], args.port));
let addr: SocketAddr = format!("{}:{}", args.host, args.port).parse()?;

setup_ongen().await;
{
Expand Down

0 comments on commit 473eaa1

Please sign in to comment.