Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
blizard863 committed May 26, 2017
1 parent d1f5ec0 commit 1af6276
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions models/plugin/http-proxy/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ func NewProxyPlugin(params map[string]string) (p plugin.Plugin, err error) {
return
}

p = &Proxy{
proxy := &Proxy{
Server: NewProxyServer(),
Ln: listen,
}
return
go proxy.Server.Serve(proxy.Ln)

return proxy, nil
}

func (proxy *Proxy) Name() string {
Expand Down

0 comments on commit 1af6276

Please sign in to comment.