Skip to content

Commit

Permalink
Fix panic due to uninitialized logFields map
Browse files Browse the repository at this point in the history
  • Loading branch information
rod-hynes committed Nov 11, 2024
1 parent 4c763b6 commit 5928ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psiphon/common/inproxy/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ func (report *BrokerServerReport) ValidateAndGetLogFields(
return nil, errors.Tracef("invalid proxy portmapping types: %v", report.ProxyPortMappingTypes)
}

logFields := common.LogFields{}
logFields = common.LogFields{}

logFields["proxy_nat_type"] = report.ProxyNATType
logFields["proxy_port_mapping_types"] = report.ProxyPortMappingTypes
Expand Down

0 comments on commit 5928ffb

Please sign in to comment.