mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 00:24:45 +00:00
test: pin tailscale bind diagnostics
This commit is contained in:
@@ -54,14 +54,13 @@ describe("gateway tailscale bind validation", () => {
|
||||
});
|
||||
expect(lanRes.ok).toBe(false);
|
||||
if (!lanRes.ok) {
|
||||
expect(lanRes.issues).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
path: "gateway.bind",
|
||||
message: expect.stringContaining("gateway.bind must resolve to loopback"),
|
||||
}),
|
||||
]),
|
||||
);
|
||||
expect(lanRes.issues).toEqual([
|
||||
{
|
||||
path: "gateway.bind",
|
||||
message:
|
||||
'gateway.bind must resolve to loopback when gateway.tailscale.mode=serve (use gateway.bind="loopback" or gateway.bind="custom" with gateway.customBindHost="127.0.0.1")',
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
const customRes = validateConfigObject({
|
||||
|
||||
Reference in New Issue
Block a user