Skip to main content

publish_port

Function publish_port 

Source
pub(crate) fn publish_port(port: u16)
Expand description

Write the web port beside the key file (owner-only), so agentmux-srv open finds this server without being told the port. Only a headless srv that serves its own UI and whose key came from a file. The file is replaced at every start and removed at a clean exit; after a crash it can name a port nobody listens on, or one another program now holds, which open meets with its proof of the key and refuses.