import { getNetConfig } from "./multiaddr/get-net-config.js";
import { netConfigToMultiaddr } from "./multiaddr/utils.js";
/**
 * Get all thin waist addresses on the current host that match the family of the
 * passed multiaddr and optionally override the port.
 *
 * Wildcard IP4/6 addresses will be expanded into all available interfaces.
 */
export function getThinWaistAddresses(ma, port) {
    if (ma == null) {
        return [];
    }
    const config = getNetConfig(ma);
    return [
        netConfigToMultiaddr(config, port)
    ];
}
//# sourceMappingURL=get-thin-waist-addresses.browser.js.map