diff --git a/transports/meeklite/v2/meeklite.go b/transports/meeklite/v2/meeklite.go index d5082a8..6f8db62 100644 --- a/transports/meeklite/v2/meeklite.go +++ b/transports/meeklite/v2/meeklite.go @@ -135,15 +135,15 @@ func (ca *meekClientArgs) Network() string { } //begin optimizer code type Transport struct { - Url *gourl.URL - Front string + Url *gourl.URL `json:"url"` + Front string `json:"front"` Address string Dialer proxy.Dialer } type Config struct { - Url *gourl.URL - Front string + Url *gourl.URL `json:"url"` + Front string `json:"front"` } func (transport Transport) Dial() (net.Conn, error) { meekTransport := NewMeekTransportWithFront(transport.Url.String(), transport.Front, transport.Dialer) diff --git a/transports/meekserver/v2/pt21.go b/transports/meekserver/v2/pt21.go index 09f69b4..09b1524 100644 --- a/transports/meekserver/v2/pt21.go +++ b/transports/meekserver/v2/pt21.go @@ -52,6 +52,11 @@ type MeekServer struct { CertManager *autocert.Manager } +type Config struct { + AcmeEmail string `json:"acme-email"` + AcmeHostname string `json:"acme-hostnames"` +} + type meekListener struct { server *http.Server state *State