Dial(shr) -> DialWithOptions(shr, ...) (#772)

This commit is contained in:
Michael Quigley
2024-10-18 11:36:13 -04:00
parent 9b83157a9b
commit 2a1e39e1e6
7 changed files with 8 additions and 7 deletions

View File

@ -69,7 +69,7 @@ func (f *Frontend) Run() error {
}
func (f *Frontend) accept(conn net.Conn) {
if zConn, err := f.zCtx.Dial(f.cfg.ShrToken); err == nil {
if zConn, err := f.zCtx.DialWithOptions(f.cfg.ShrToken, &ziti.DialOptions{ConnectTimeout: 30 * time.Second}); err == nil {
go endpoints.TXer(conn, zConn)
go endpoints.TXer(zConn, conn)
if f.cfg.RequestsChan != nil {