Skip to content

Commit 2fbe69d

Browse files
committed
server: add 4-minute UDP sessions and status page
1 parent 740be30 commit 2fbe69d

7 files changed

Lines changed: 779 additions & 268 deletions

File tree

crates/bonded-core/src/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ impl Default for ServerConfig {
6666
pub struct ServerSection {
6767
pub bind: String,
6868
pub websocket_bind: String,
69+
pub status_bind: String,
6970
pub websocket_tls_cert_file: String,
7071
pub websocket_tls_key_file: String,
7172
pub public_address: String,
@@ -82,6 +83,7 @@ impl Default for ServerSection {
8283
Self {
8384
bind: "0.0.0.0:8080".to_owned(),
8485
websocket_bind: "0.0.0.0:8443".to_owned(),
86+
status_bind: "0.0.0.0:8082".to_owned(),
8587
websocket_tls_cert_file: String::new(),
8688
websocket_tls_key_file: String::new(),
8789
public_address: String::new(),
@@ -164,6 +166,7 @@ mod tests {
164166
assert_eq!(cfg.server.supported_protocols, vec!["naive_tcp"]);
165167
assert!(cfg.server.upstream_tcp_target.is_empty());
166168
assert_eq!(cfg.server.websocket_bind, "0.0.0.0:8443");
169+
assert_eq!(cfg.server.status_bind, "0.0.0.0:8082");
167170
assert!(cfg.server.websocket_tls_cert_file.is_empty());
168171
assert!(cfg.server.websocket_tls_key_file.is_empty());
169172
}

0 commit comments

Comments
 (0)