mirror of
https://github.com/hanzozt/dilithium.git
synced 2026-10-30 20:38:17 +00:00
Global rebrand of all OpenZiti references to Hanzo ZT: - Go module paths: github.com/openziti/* → github.com/hanzozt/* - Docker images: openziti/* → hanzozt/* - Java packages: org.openziti.* → org.hanzozt.* - Brand: OpenZiti → Hanzo ZT - URLs: openziti.io → hanzozt.dev
16 lines
327 B
Go
16 lines
327 B
Go
package westlsworld3
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"github.com/hanzozt/dilithium/protocol/westworld3"
|
|
"net"
|
|
)
|
|
|
|
func Dial(addr *net.UDPAddr, tlsConfig *tls.Config, profileId byte) (net.Conn, error) {
|
|
w3Conn, err := westworld3.Dial(addr, profileId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return tls.Client(w3Conn, tlsConfig), nil
|
|
}
|