Skip to content

Commit

Permalink
Added Meek Server Config
Browse files Browse the repository at this point in the history
  • Loading branch information
Consuelita committed Mar 13, 2020
1 parent b454968 commit f9314ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions transports/meeklite/v2/meeklite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions transports/meekserver/v2/pt21.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9314ed

Please sign in to comment.