Return grpc_config json setting in TXT

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-03-30 09:22:09 +02:00
parent e2238cfad8
commit cca578a460
3 changed files with 12 additions and 12 deletions

View File

@@ -2,7 +2,6 @@ package traffic
import (
"crypto/tls"
"encoding/json"
"fmt"
"math/rand"
"strings"
@@ -32,9 +31,6 @@ func setup(c *caddy.Controller) error {
if err != nil {
return plugin.Error("traffic", err)
}
if _, err := json.Marshal(lbTXT); err != nil {
return fmt.Errorf("failed to marshal grpc serverConfig: %s", err)
}
dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler {
t.Next = next