fix: change local https to http

This commit is contained in:
YuKun Liu committed 2022-07-06 23:01:39 +08:00
1 parent b642dcd739
commit f57dc5212b
1 file changed
+8 -2
+8 -2
View File
@@ -427,7 +427,7 @@ fn print_console_info(port: u16, config: &CrateConfig, changed: Vec<PathBuf>) {
} }
println!( println!(
"\t> Local : {}", "\t> Local : {}",
format!("https://localhost:{}/", port).blue() format!("http://localhost:{}/", port).blue()
); );
println!( println!(
"\t> NetWork : {}", "\t> NetWork : {}",
@@ -444,8 +444,14 @@ fn print_console_info(port: u16, config: &CrateConfig, changed: Vec<PathBuf>) {
println!("\t> Enabled Tools : {}", tools_str.yellow()); println!("\t> Enabled Tools : {}", tools_str.yellow());
println!("\t> Index Template : {}", custom_html_file.green()); println!("\t> Index Template : {}", custom_html_file.green());
println!("\t> URL Rewrite [index_on_404] : {}", url_rewrite.purple()); println!("\t> URL Rewrite [index_on_404] : {}", url_rewrite.purple());
println!("");
println!("\n{}\n", "Server startup completed.".green().bold()); if changed.len() <= 0 {
log::info!("{}", "Server startup completed.".green().bold());
} else {
log::info!("{}", "Project rebuild completed.".green().bold());
}
} }
fn get_ip() -> Option<String> { fn get_ip() -> Option<String> {