mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
Use tunnel transport and set server address
This commit is contained in:
@@ -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),
|
||||
)
|
||||
|
Reference in New Issue
Block a user