Skip to content

Commit

Permalink
add fields to archival struct for handshake result
Browse files Browse the repository at this point in the history
  • Loading branch information
ainghazal committed Mar 7, 2024
1 parent 441ff85 commit dfcf24c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion internal/experiment/openvpn/archival.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ type ArchivalOpenVPNHandshakeResult struct {
BootstrapTime float64 `json:"bootstrap_time,omitempty"`
Endpoint string `json:"endpoint"`
IP string `json:"ip"`
OpenVPNOptions OpenVPNOptions `json:"openvpn_options"`
Port int `json:"port"`
Transport string `json:"transport"`
Provider string `json:"provider"`
OpenVPNOptions OpenVPNOptions `json:"openvpn_options"`
Status ArchivalOpenVPNConnectStatus `json:"status"`
StartTime time.Time `json:"handshake_start_time"`

Expand Down
5 changes: 3 additions & 2 deletions internal/experiment/openvpn/openvpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,14 @@ func (m *Measurer) connectAndHandshake(ctx context.Context, index int64,
BootstrapTime: bootstrapTime,
Endpoint: endpoint.String(),
IP: endpoint.IPAddr,
Port: port,
Transport: endpoint.Transport,
Provider: endpoint.Provider,
OpenVPNOptions: OpenVPNOptions{
Cipher: openvpnConfig.OpenVPNOptions().Cipher,
Auth: openvpnConfig.OpenVPNOptions().Auth,
Compression: string(openvpnConfig.OpenVPNOptions().Compress),
},
Port: port,
Provider: endpoint.Provider,
Status: ArchivalOpenVPNConnectStatus{
Failure: &failure,
Success: err == nil,
Expand Down

0 comments on commit dfcf24c

Please sign in to comment.