fix: require auth for agent ws
This commit is contained in:
parent
5bc313e5fe
commit
377641265b
4 changed files with 19 additions and 2 deletions
|
|
@ -24,7 +24,13 @@ func main() {
|
|||
agent.StartAndFetchID()
|
||||
defer agent.Shutdown()
|
||||
|
||||
ws, err := hpagent.NewSocket(agent, cfg.HPControlURL, cfg.Debug)
|
||||
ws, err := hpagent.NewSocket(
|
||||
agent,
|
||||
cfg.HPControlURL,
|
||||
cfg.HPAuthKey,
|
||||
cfg.Debug,
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create websocket: %s", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue