Mult Port + TCP Calibration (SSH DEAD)

This commit is contained in:
2026-08-17 17:08:57 -03:00
parent 7ea221a99c
commit b997294607
58 changed files with 6033 additions and 497 deletions
@@ -0,0 +1,16 @@
package main
import "testing"
func TestSSHOnlyInternalTargetIsNotPublicDragonTCPTarget(t *testing.T) {
const host = "test-udpgw.internal"
const port = 17400
registerSSHOnlyInternalTarget(host, port, "127.0.0.1:17400")
if _, ok := lookupInternalTarget(host, port); ok {
t.Fatal("SSH-only target leaked into raw DragonTCP internal target registry")
}
if got, ok := lookupSSHOnlyInternalTarget(host, port); !ok || got != "127.0.0.1:17400" {
t.Fatalf("SSH-only target lookup = %q, %v", got, ok)
}
}