Skip to content

Commit

Permalink
Merge pull request #20 from editso/dev
Browse files Browse the repository at this point in the history
服务端参数问题
  • Loading branch information
editso authored Dec 16, 2021
2 parents 753029b + 287bf38 commit a11c99b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@ struct FusoArgs {
fn main() {
let args = FusoArgs::parse();


env_logger::builder()
.filter_level(args.log_level)
.format_timestamp_millis()
.init();


let bind_addr = format!("{}:{}", args.bind_host, args.bind_port);

let core_future = async move {
Fuso::builder()
.use_auth(TokenAuth::new("my_token"))
.use_default_handler()
.use_default_strategy()
.use_global_config(GlobalConfig::new("0.0.0.0:9003"))
.use_global_config(GlobalConfig::new(&bind_addr))
.add_advice(fuso::rsa::server::RsaAdvice)
.add_handsnake(Handsnake {
prefix: "GET / HTTP/1.1".into(),
Expand Down

0 comments on commit a11c99b

Please sign in to comment.