Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server name override possible when smp.publicurl is misconfigured #237

Closed
smahieu87 opened this issue Mar 3, 2023 · 1 comment
Closed
Assignees

Comments

@smahieu87
Copy link

When the smp.publicurl has been misconfigured (e.g. missing protocol 'http://') the server name is not set at start up.
If the application is in this state it will take the host header of the first call to set the serverName.
In our case it was a bot scanning our application that was using an x-rated domain as there host header.
When this happens you'll see the following message in the log:
"Static server information set: [StaticServerInfo@0x345f634f: scheme=http; serverName=..."

This serverName is used for a number of forwards and generation of links which resulted is some strange behavior of the application.

@phax phax self-assigned this Mar 17, 2023
phax added a commit that referenced this issue Mar 17, 2023
@phax
Copy link
Owner

phax commented Mar 17, 2023

Thanks for the heads up. The issue will be solved in the v6.0.8 release!

@phax phax closed this as completed Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants