Skip to content

Commit

Permalink
Use tunnel transport and set server address
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Aug 27, 2019
1 parent 371b23d commit 87b56d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion network/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ func newNetwork(opts ...Option) Network {
)

// create tunnel client with tunnel transport
tunTransport := transport.NewTransport(
tunTransport := trn.NewTransport(
trn.WithTunnel(options.Tunnel),
)

// srv is network server
srv := server.NewServer(
server.Address(options.Address),
server.Name(options.Name),
server.Transport(tunTransport),
)
Expand Down

0 comments on commit 87b56d4

Please sign in to comment.