Skip to main content

Module exposure

Module exposure 

Source
Expand description

Is a managed server reachable beyond loopback? The adapter passes --host 127.0.0.1, but the launcher and the server are not ours, so the binding is checked, not assumed: connect to every non-loopback address of this machine on the server’s port.

Functions§

local_addrs
Non-loopback unicast addresses of this machine’s interfaces (IPv6 link-local addresses are skipped: they need a scope to connect to).
port_in_use
Whether something accepts connections on ip:port.
reachable_beyond_loopback
The local non-loopback addresses port answers on (empty: loopback only).