connect/proxy: use the right variable for loading the new service

This commit is contained in:
Mitchell Hashimoto 2018-05-19 00:20:43 -07:00
parent b28e2b8622
commit 27aa0743ec
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func (p *Proxy) Serve() error {
// Initial setup
// Setup Service instance now we know target ID etc
service, err := cfg.Service(p.client, p.logger)
service, err := newCfg.Service(p.client, p.logger)
if err != nil {
return err
}