mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
feat: server 启动加 --host 绑定地址旗标与 sidecar 端口字段
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
//! 进程级一次性的,信号投递无歧义,测试确定。SIGINT 路径见
|
||||
//! `server_signal_int.rs`(同型,独立进程)。
|
||||
|
||||
use std::net::{IpAddr, Ipv4Addr};
|
||||
use std::process::Command;
|
||||
use std::thread::JoinHandle;
|
||||
use std::time::{Duration, Instant};
|
||||
@@ -21,6 +22,7 @@ fn unique_paths(test_name: &str) -> ServerConfig {
|
||||
sidecar_path: dir.join("sidecar.json"),
|
||||
worker_count: 2,
|
||||
version: env!("CARGO_PKG_VERSION").to_string(),
|
||||
bind_addr: IpAddr::V4(Ipv4Addr::LOCALHOST),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user