mirror of
https://github.com/openziti/zrok.git
synced 2025-08-16 02:47:56 +02:00
Dial(shr) -> DialWithOptions(shr, ...) (#772)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user