File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ cargo run -- [OPTIONS]
18
18
- ` --builder-url <URL> ` : URL of the builder execution engine (required)
19
19
- ` --builder-jwt-token <TOKEN> ` : JWT token for builder authentication (required)
20
20
- ` --builder-jwt-path <PATH> ` : Path to the builder JWT secret file (required if ` --builder-jwt-token ` is not provided)
21
- - ` --rpc-host <HOST> ` : Host to run the server on (default: 0 .0.0.0 )
21
+ - ` --rpc-host <HOST> ` : Host to run the server on (default: 127 .0.0.1 )
22
22
- ` --rpc-port <PORT> ` : Port to run the server on (default: 8081)
23
23
- ` --tracing ` : Enable tracing (default: false)
24
24
- ` --log-level <LEVEL> ` : Log level (default: info)
25
25
- ` --log-format <FORMAT> ` : Log format (default: text)
26
26
- ` --metrics ` : Enable metrics (default: false)
27
+ - ` --metrics-host <METRICS_HOST> ` : Host to run the metrics server on (default: 127.0.0.1)
27
28
- ` --debug-host <HOST> ` : Host to run the server on (default: 127.0.0.1)
28
29
- ` --debug-server-port <PORT> ` : Port to run the debug server on (default: 5555)
29
30
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub struct Args {
36
36
pub max_unsafe_interval : u64 ,
37
37
38
38
/// Host to run the server on
39
- #[ arg( long, env, default_value = "0 .0.0.0 " ) ]
39
+ #[ arg( long, env, default_value = "127 .0.0.1 " ) ]
40
40
pub rpc_host : String ,
41
41
42
42
/// Port to run the server on
@@ -52,7 +52,7 @@ pub struct Args {
52
52
pub metrics : bool ,
53
53
54
54
/// Host to run the metrics server on
55
- #[ arg( long, env, default_value = "0 .0.0.0 " ) ]
55
+ #[ arg( long, env, default_value = "127 .0.0.1 " ) ]
56
56
pub metrics_host : String ,
57
57
58
58
/// Port to run the metrics server on
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ pub mod tests {
394
394
395
395
use super :: * ;
396
396
397
- const AUTH_ADDR : & str = "0 .0.0.0 " ;
397
+ const AUTH_ADDR : & str = "127 .0.0.1 " ;
398
398
const SECRET : & str = "f79ae8046bc11c9927afe911db7143c51a806c4a537cc08e0d37140b0192f430" ;
399
399
400
400
pub fn get_available_port ( ) -> u16 {
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ mod tests {
101
101
+ ' static ,
102
102
{
103
103
{
104
- let listener = TcpListener :: bind ( "0 .0.0.0 :0" ) . await ?;
104
+ let listener = TcpListener :: bind ( "127 .0.0.1 :0" ) . await ?;
105
105
let addr = listener. local_addr ( ) ?;
106
106
107
107
let handle = tokio:: spawn ( async move {
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ mod tests {
206
206
// None,
207
207
) ) ;
208
208
209
- let temp_listener = TcpListener :: bind ( "0 .0.0.0 :0" ) . await ?;
209
+ let temp_listener = TcpListener :: bind ( "127 .0.0.1 :0" ) . await ?;
210
210
let server_addr = temp_listener. local_addr ( ) ?;
211
211
drop ( temp_listener) ;
212
212
@@ -247,7 +247,7 @@ mod tests {
247
247
248
248
impl MockHttpServer {
249
249
async fn serve ( ) -> eyre:: Result < Self > {
250
- let listener = TcpListener :: bind ( "0 .0.0.0 :0" ) . await ?;
250
+ let listener = TcpListener :: bind ( "127 .0.0.1 :0" ) . await ?;
251
251
let addr = listener. local_addr ( ) ?;
252
252
let requests = Arc :: new ( Mutex :: new ( vec ! [ ] ) ) ;
253
253
You can’t perform that action at this time.
0 commit comments