feat: expose transparent web device forwarders
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user