Show OpenVPN OIDC prerequisites and exposed management port
This commit is contained in:
1 parent
64f1d89a2f
commit
ea9c885a15
10 files changed
+90
-5
No files matched your search
@@ -80,7 +80,11 @@ func TestNginxModeDoesNotBindGoListeners(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
status := Status()
|
||||
if status.Mode != "nginx" || status.Enabled || status.Domain != "" || status.ConfiguredDomain != "test-link.appx365.com" {
|
||||
if status.Mode != "nginx" || status.Enabled || status.Domain != "" || status.ConfiguredDomain != "test-link.appx365.com" || !status.DirectPortPublic {
|
||||
t.Fatalf("proxy mode must not claim Go listens: %+v", status)
|
||||
}
|
||||
t.Setenv("VPN_LISTEN_ADDR", "127.0.0.1:18080")
|
||||
if Status().DirectPortPublic {
|
||||
t.Fatal("loopback management listener must not be marked public")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user