MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / bonjour_service_name

Function bonjour_service_name

packages/server/src/main.rs:6062–6069  ·  view source on GitHub ↗
(advertise_host: &str)

Source from the content-addressed store, hash-verified

6060}
6061
6062fn bonjour_service_name(advertise_host: &str) -> String {
6063 let host = advertise_host.trim();
6064 if host.is_empty() || host == "127.0.0.1" || host == "localhost" {
6065 "SimDeck".to_owned()
6066 } else {
6067 format!("SimDeck {host}")
6068 }
6069}
6070
6071fn app_router(state: AppState, client_root: PathBuf, access_token: String) -> Router {
6072 router(state).fallback(

Callers 1

startMethod · 0.85

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected