This commit updates the grpc server to accept connections on any
container IP and refresh the adapters README.md file.
Change-Id: Ic59c3b07d786499cda0a0a1a6be0ee1f75e869ca
diff --git a/common/grpc/server.go b/common/grpc/server.go
index 0441fcf..d5685f1 100644
--- a/common/grpc/server.go
+++ b/common/grpc/server.go
@@ -17,12 +17,11 @@
import (
"context"
+ "fmt"
"github.com/opencord/voltha-go/common/log"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"net"
- "strconv"
- "strings"
)
/*
@@ -85,10 +84,8 @@
Start prepares the GRPC server and starts servicing requests
*/
func (s *GrpcServer) Start(ctx context.Context) {
- host := strings.Join([]string{
- s.address,
- strconv.Itoa(int(s.port)),
- }, ":")
+
+ host := fmt.Sprintf("%s:%d", s.address, s.port)
lis, err := net.Listen("tcp", host)
if err != nil {