Bind to loopback address by default (#4054)
This commit is contained in:
parent
2219388802
commit
5e33d4c311
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ To listen to code changes as you develop, use the following command:
|
||||||
cargo watch -x 'run --no-default-features --features storage-mem,http,scripting -- start --log trace --user root --pass root memory'
|
cargo watch -x 'run --no-default-features --features storage-mem,http,scripting -- start --log trace --user root --pass root memory'
|
||||||
```
|
```
|
||||||
|
|
||||||
SurrealDB runs by default on port 8000. To change the default port, use the following command:
|
By default, SurrealDB runs locally on port 8000. To change the default listening address or port, use the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo run --no-default-features --features storage-mem,http,scripting -- start --log trace --user root --pass root --bind 0.0.0.0:9000 memory
|
cargo run --no-default-features --features storage-mem,http,scripting -- start --log trace --user root --pass root --bind 0.0.0.0:9000 memory
|
||||||
|
|
|
@ -92,9 +92,9 @@ pub struct StartCommandArguments {
|
||||||
#[arg(env = "SURREAL_CLIENT_IP", long)]
|
#[arg(env = "SURREAL_CLIENT_IP", long)]
|
||||||
#[arg(default_value = "socket", value_enum)]
|
#[arg(default_value = "socket", value_enum)]
|
||||||
client_ip: ClientIp,
|
client_ip: ClientIp,
|
||||||
#[arg(help = "The hostname or ip address to listen for connections on")]
|
#[arg(help = "The hostname or IP address to listen for connections on")]
|
||||||
#[arg(env = "SURREAL_BIND", short = 'b', long = "bind")]
|
#[arg(env = "SURREAL_BIND", short = 'b', long = "bind")]
|
||||||
#[arg(default_value = "0.0.0.0:8000")]
|
#[arg(default_value = "127.0.0.1:8000")]
|
||||||
listen_addresses: Vec<SocketAddr>,
|
listen_addresses: Vec<SocketAddr>,
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue