client_hello_id_version.go 516 B

12345678910111213141516171819202122232425
  1. package utls
  2. import (
  3. "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/version"
  4. "strings"
  5. )
  6. func generateVersionOutput() string {
  7. var versionOutputBuilder strings.Builder
  8. versionOutputBuilder.WriteString(`Known utls-imitate values:
  9. (empty)
  10. `)
  11. for _, name := range ListAllNames() {
  12. versionOutputBuilder.WriteString(name)
  13. versionOutputBuilder.WriteRune('\n')
  14. }
  15. return versionOutputBuilder.String()
  16. }
  17. func init() {
  18. version.AddVersionDetail(generateVersionOutput())
  19. }