feat(core): allow setting server hostname

This commit is contained in:
Aiden McClelland
2026-02-23 13:35:34 -07:00
parent 31352a72c3
commit 0724989792
11 changed files with 202 additions and 82 deletions

View File

@@ -76,6 +76,11 @@ impl AvailablePorts {
self.0.insert(port, ssl);
Some(port)
}
pub fn set_ssl(&mut self, port: u16, ssl: bool) {
self.0.insert(port, ssl);
}
/// Returns whether a given allocated port is SSL.
pub fn is_ssl(&self, port: u16) -> bool {
self.0.get(&port).copied().unwrap_or(false)