feat: expose transparent web device forwarders

This commit is contained in:
Yoilun
2026-05-15 11:25:18 +08:00
parent 2f458b1691
commit 7b32b21f07
4 changed files with 24 additions and 10 deletions

View File

@@ -71,8 +71,11 @@ func TestScanBuildsProxyURLAndAllowList(t *testing.T) {
if result.Devices[0].ProxyURL != "/proxy/web/192.168.1.124/" {
t.Fatalf("ProxyURL = %q", result.Devices[0].ProxyURL)
}
if result.Devices[0].DirectURL != "" {
t.Fatalf("DirectURL = %q, want empty", result.Devices[0].DirectURL)
if result.Devices[0].DirectURL != "http://10.8.0.14:31124/" {
t.Fatalf("DirectURL = %q", result.Devices[0].DirectURL)
}
if result.Devices[0].ForwardPort != 31124 {
t.Fatalf("ForwardPort = %d, want 31124", result.Devices[0].ForwardPort)
}
}