import { test } from "node:test"; import assert from "node:assert/strict"; import { uplinkAddress } from "../src/lifecycle/raise.ts"; // A workstation behind a VPN client that routes every private range leaves incus nothing to pick, so // the uplink's range may be named; otherwise incus picks it. test("the uplink's range is incus's to pick unless the host names one", () => { assert.equal(uplinkAddress({}), "auto"); assert.equal(uplinkAddress({ MESH_LAB_UPLINK_V4: " 192.168.231.1/24 " }), "192.168.231.1/24"); });