support for nats websocket amidaware/tacticalrmm@42e1717455
This commit is contained in:
parent
aed33b9a95
commit
8d2511129c
8 changed files with 29 additions and 13 deletions
|
|
@ -54,8 +54,7 @@ func (a *Agent) RunRPC() {
|
|||
var wg sync.WaitGroup
|
||||
wg.Add(1)
|
||||
opts := a.setupNatsOptions()
|
||||
server := fmt.Sprintf("tls://%s:4222", a.ApiURL)
|
||||
nc, err := nats.Connect(server, opts...)
|
||||
nc, err := nats.Connect(a.NatsServer, opts...)
|
||||
if err != nil {
|
||||
a.Logger.Fatalln("RunRPC() nats.Connect()", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue