mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
fix socket Connect value conversion
This commit is contained in:
parent
62ab08ac93
commit
68b61bf3d5
@ -39,7 +39,7 @@ func Connect(ctx context.Context, addr string, opts *SocketOptions) (net.Conn, e
|
||||
optionsObj.Set("allowHalfOpen", true)
|
||||
}
|
||||
if opts.SecureTransport != "" {
|
||||
optionsObj.Set("secureTransport", opts.SecureTransport)
|
||||
optionsObj.Set("secureTransport", string(opts.SecureTransport))
|
||||
}
|
||||
}
|
||||
sockVal := connect.Invoke(addr, optionsObj)
|
||||
|
Loading…
x
Reference in New Issue
Block a user