mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-11-22 08:56:58 -06:00
Default config listen_address
to empty string
If the address is `""` then an available address is automatically picked. ``` // Network#allocate_tcp_port if listen_address.is_empty() { // If listen address is empty, find us a port iteratively let port = self.find_available_tcp_port(5150)?; let ip_addrs = available_unspecified_addresses(); Ok((port, ip_addrs)) } else { // ... } ```
This commit is contained in:
parent
c8429a0a36
commit
6c6f0c4966
@ -30,7 +30,7 @@ impl Default for VeilidConfigHTTPS {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
enabled: false,
|
||||
listen_address: String::from(":5150"),
|
||||
listen_address: String::from(""),
|
||||
path: String::from("app"),
|
||||
url: None,
|
||||
}
|
||||
@ -61,7 +61,7 @@ impl Default for VeilidConfigHTTP {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
enabled: false,
|
||||
listen_address: String::from(":5150"),
|
||||
listen_address: String::from(""),
|
||||
path: String::from("app"),
|
||||
url: None,
|
||||
}
|
||||
@ -106,7 +106,7 @@ impl Default for VeilidConfigUDP {
|
||||
Self {
|
||||
enabled: true,
|
||||
socket_pool_size: 0,
|
||||
listen_address: String::from(":5150"),
|
||||
listen_address: String::from(""),
|
||||
public_address: None,
|
||||
}
|
||||
}
|
||||
@ -139,7 +139,7 @@ impl Default for VeilidConfigTCP {
|
||||
connect: true,
|
||||
listen: true,
|
||||
max_connections: 32,
|
||||
listen_address: String::from(":5150"),
|
||||
listen_address: String::from(""),
|
||||
public_address: None,
|
||||
}
|
||||
}
|
||||
@ -175,7 +175,7 @@ impl Default for VeilidConfigWS {
|
||||
connect: true,
|
||||
listen: true,
|
||||
max_connections: 16,
|
||||
listen_address: String::from(":5150"),
|
||||
listen_address: String::from(""),
|
||||
path: String::from("ws"),
|
||||
url: None,
|
||||
}
|
||||
@ -212,7 +212,7 @@ impl Default for VeilidConfigWSS {
|
||||
connect: true,
|
||||
listen: false,
|
||||
max_connections: 16,
|
||||
listen_address: String::from(":5150"),
|
||||
listen_address: String::from(""),
|
||||
path: String::from("ws"),
|
||||
url: None,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user