Refactoring

Refactored Protocol.Name -> Protocol.Type; added Encapsulation field
Refactored TLS parsing; added support for ALPN
This commit is contained in:
2025-10-10 12:41:44 +02:00
parent f86a7f7a67
commit 81a3829382
20 changed files with 366 additions and 141 deletions

View File

@@ -81,7 +81,7 @@ func proxy(client net.Conn, target string) {
log.Printf("protocol detection failed: %v", result.Error)
} else {
log.Printf("detected protocol %s version %s initiated by %s",
result.Protocol.Name, result.Protocol.Version, result.Direction)
result.Protocol.Type, result.Protocol.Version, result.Direction)
}
// Wait for the multiplexing to finish.