From 6a59319fff2ea16190bfc950aef680dc05dd9bc4 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Fri, 7 Dec 2018 22:20:43 +0100 Subject: [PATCH] fix small issue with grpc merge --- proxy/serve.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy/serve.go b/proxy/serve.go index e9fcdf537..908521d36 100644 --- a/proxy/serve.go +++ b/proxy/serve.go @@ -3,12 +3,13 @@ package proxy import ( "context" "crypto/tls" - "google.golang.org/grpc" "net" "net/http" "sync" "time" + "google.golang.org/grpc" + "github.com/fabiolb/fabio/config" "github.com/fabiolb/fabio/proxy/tcp" ) @@ -71,7 +72,7 @@ func ListenAndServeHTTP(l config.Listen, h http.Handler, cfg *tls.Config) error } func ListenAndServeGRPC(l config.Listen, opts []grpc.ServerOption, cfg *tls.Config) error { - ln, err := ListenTCP(l.Addr, cfg) + ln, err := ListenTCP(l, cfg) if err != nil { return err }