Correctly re-establish the stream

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-02-05 16:10:58 +01:00
parent a47aea02f8
commit 72dac14b48
3 changed files with 35 additions and 21 deletions

View File

@@ -2,6 +2,7 @@ package traffic
import (
"context"
"crypto/tls"
"fmt"
"strconv"
"strings"
@@ -17,7 +18,11 @@ import (
// Traffic is a plugin that load balances according to assignments.
type Traffic struct {
c *xds.Client
c *xds.Client
node string
tlsConfig *tls.Config
hosts []string
id string
health bool
origins []string