fix: fix workspacesdk to return error on API mismatch (#13683)

This commit is contained in:
Spike Curtis
2024-06-27 15:02:43 +04:00
committed by GitHub
parent c4f1676055
commit 5b59f2880f
4 changed files with 66 additions and 3 deletions
+2
View File
@@ -55,6 +55,8 @@ const (
AgentMinimumListeningPort = 9
)
const AgentAPIMismatchMessage = "Unknown or unsupported API version"
// AgentIgnoredListeningPorts contains a list of ports to ignore when looking for
// running applications inside a workspace. We want to ignore non-HTTP servers,
// so we pre-populate this list with common ports that are not HTTP servers.