Add Worker Version Check
This commit is contained in:
parent
a0f3d5e439
commit
595efd0c66
3 changed files with 8 additions and 0 deletions
|
@ -59,6 +59,7 @@ func connectToServer(ctx context.Context, uuid uuid.UUID) {
|
|||
headers.Add(constants.SHARED_SECRET_HEADER, conf.SharedSecret)
|
||||
headers.Add(constants.NAME_HEADER, conf.Worker.Name)
|
||||
headers.Add(constants.UUID_HEADER, uuid.String())
|
||||
headers.Add(constants.WORKER_VERSION_HEADER, constants.WORKER_VERSION)
|
||||
|
||||
c, res, err := websocket.Dial(ctx, conf.Worker.Address, &websocket.DialOptions{
|
||||
HTTPHeader: headers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue