Skip to content

Commit

Permalink
Merge pull request #6 from halseth/localhost-name
Browse files Browse the repository at this point in the history
use localhost name when dialing
  • Loading branch information
halseth authored Jan 21, 2020
2 parents 0e85c0d + 45f7fa8 commit 41fd7b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

const toolName = "falafel"
const version = "0.6"
const version = "0.7"

var versionString = fmt.Sprintf("%s %s", toolName, version)

Expand Down
3 changes: 2 additions & 1 deletion templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ func get{{$lis | UpperCase}}Conn() (*grpc.ClientConn, func(), error) {
// Apply any global server options.
opts = apply{{$lis | UpperCase}}DialOptions(opts)
address := conn.RemoteAddr().String()
// As address we use "localhost" to mimic a local connection.
address := "localhost"
clientConn, err := grpc.Dial(address, opts...)
if err != nil {
conn.Close()
Expand Down

0 comments on commit 41fd7b0

Please sign in to comment.