mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
Use tunnel transport and set server address
This commit is contained in:
parent
371b23d055
commit
87b56d46ac
@ -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),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user