aboutsummaryrefslogtreecommitdiffstats
path: root/vm/proxyapp/init.go
diff options
context:
space:
mode:
authorkalder <61064868+kalder@users.noreply.github.com>2023-02-07 02:29:21 -0800
committerGitHub <noreply@github.com>2023-02-07 10:29:21 +0000
commit7d00f0e133ba54296273f8914e3bcb453f827f9a (patch)
tree2786899121fa3086261e7b5ed7163ec0b49439b9 /vm/proxyapp/init.go
parent0cbf19943cd983a8c8abb1d627801b03317bad37 (diff)
vm/proxyapp: pass file data when running in tcp mode (#3648)
Instead of just passing the path to the file (on the local machine) to the ProxyApp, we need to pass the file data. This applies for both calls to Copy() and CreateInstance().
Diffstat (limited to 'vm/proxyapp/init.go')
-rw-r--r--vm/proxyapp/init.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm/proxyapp/init.go b/vm/proxyapp/init.go
index 8153cf031..467187f46 100644
--- a/vm/proxyapp/init.go
+++ b/vm/proxyapp/init.go
@@ -68,6 +68,9 @@ type Config struct {
// server_tls_cert points a TLS certificate used to authenticate the server.
// If not provided, the default system certificate pool will be used.
ServerTLSCert string `json:"server_tls_cert"`
+ // transfer_file_content will send the file content as a byte array in
+ // addition to the filename.
+ TransferFileContent bool `json:"transfer_file_content"`
// config is an optional remote plugin config
ProxyAppConfig json.RawMessage `json:"config"`
}