-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
π Description
I have a log service to track the connection offline and we need to retrieve the IP from remote addr, but it return nil because the connection had closed, the connection will be always nil, so this will result in invalid memory address or nil pointer dereference

I have a PR to fix this specific issue.
π Reproduction steps
- Charger disconnect from the central system
- Trigger disconnect handler
- Use
RemoteAddr, it throwinvalid memory address or nil pointer dereference
π Expected behavior
The server shouldn't panic
π Actual Behavior
The server throw `invalid memory address or nil pointer dereference` and panic
What OCPP version are you using?
- OCPP 1.6
- OCPP 2.0.1
Are you using any OCPP extensions?
- OCPP 1.6 Security
- OCPP 1.6 Plug and Charge
release version
v0.19.1-0.20250817142028-b22429c28ebb
π Provide any additional context for the Bug.
No response
π Have you spent some time to check if this bug has been found before?
- I checked and didn't find a similar issue
Metadata
Metadata
Assignees
Labels
No labels