Closed ncwhale closed 1 year ago
Ref: https://github.com/BetterCorp/cloudflarewarp/blob/master/cloudflarewarp.go#L88
@ncwhale What is the WS server/client platform you are using?
Try changing the config to match correctly -
http:
middlewares:
cloudflareip:
plugin:
cloudflarewarp:
disableDefault: false
If you have specific additional IPs other than CF, then define trustip.
Added some extra handling... not sure it'll help, but anyway let me know if the above config still has the issues and info about your setup.
v1.3.3
- released, try that with the above ^
@ncwhale re-open this if it's still an issue
Well, I updated traefik
& this plugin to v1.3.3
, but still got this panic every time the ws is disconnected.
traefik | time="2022-10-06T14:04:42Z" level=error msg="plugins-storage/sources/gop-215151865/src/github.com/BetterCorp/cloudflarewarp/cloudflarewarp.go:89:17: panic" plugin=plugin-cloudflarewarp module=github.com/BetterCorp/cloudflarewarp
traefik | time="2022-10-06T14:04:46Z" level=error msg="plugins-storage/sources/gop-215151865/src/github.com/BetterCorp/cloudflarewarp/cloudflarewarp.go:89:17: panic" plugin=plugin-cloudflarewarp module=github.com/BetterCorp/cloudflarewarp
traefik | time="2022-10-06T14:04:51Z" level=error msg="plugins-storage/sources/gop-215151865/src/github.com/BetterCorp/cloudflarewarp/cloudflarewarp.go:89:17: panic" plugin=plugin-cloudflarewarp module=github.com/BetterCorp/cloudflarewarp
How to reproduce this bug:
Refresh
the page which will case the WS disconnect, and the panic happens.I cannot reopen this issue so I'll create a new one for this bug.
What happened:
When a websocket connection is closed by browser(client), an error message comes from this plugin.
Error message:
my env: traefik v2.8 , using docker image from hub.
plugxin config:
middleware config: