mirror of
https://github.com/fosrl/olm.git
synced 2026-02-23 05:16:45 +00:00
Include fingerprint and posture info in ping
Former-commit-id: f061596e5b
This commit is contained in:
@@ -315,6 +315,14 @@ func (o *Olm) StartTunnel(config TunnelConfig) {
|
||||
config.Endpoint,
|
||||
30, // 30 seconds
|
||||
config.PingTimeoutDuration,
|
||||
websocket.WithPingDataProvider(func() map[string]any {
|
||||
o.metaMu.Lock()
|
||||
defer o.metaMu.Unlock()
|
||||
return map[string]any{
|
||||
"fingerprint": o.fingerprint,
|
||||
"postures": o.postures,
|
||||
}
|
||||
}),
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error("Failed to create olm: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user