Skip to content

Commit 9630e27

Browse files
committed
Mark func fields in config as non-json serializable
1 parent 1a906aa commit 9630e27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ziti/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ type Config struct {
5656
//See [http.Transport.Proxy] for more information
5757
//If this value is nil, [http.ProxyFromEnvironment] is used. If you never want a proxy to be used,
5858
//set a function which always returns nil.
59-
CtrlProxy func(*http.Request) (*url.URL, error)
59+
CtrlProxy func(*http.Request) (*url.URL, error) `json:"-"`
6060

6161
//Allows providing a function which controls how/where connections to a router are proxied.
62-
RouterProxy func(addr string) *transport.ProxyConfiguration
62+
RouterProxy func(addr string) *transport.ProxyConfiguration `json:"-"`
6363
}
6464

6565
// NewConfig will create a new Config object from a provided Ziti Edge Client API URL and identity configuration.

0 commit comments

Comments
 (0)