Skip to content

Fix webui version response when no patchlevel present - #1937

Merged
vanosg merged 1 commit into
developfrom
bug/webuiversion
Sep 6, 2026
Merged

Fix webui version response when no patchlevel present#1937
vanosg merged 1 commit into
developfrom
bug/webuiversion

Conversation

@vanosg

@vanosg vanosg commented Sep 6, 2026

Copy link
Copy Markdown
Member

Found by: Geo
Patch by: Geo

One-line summary:
Fix version when no patchlevel present

Additional description (if needed):
webui was built against the develop branch which has a patch level defined. On stable, it is not defined and causes an undefined compilation error in the ternary logic.

Note for the future: for 1.10.3, recommend centralizing the definition of this variable and (unrelated) removing the nginx response from stealth_telnet.

Test cases demonstrating functionality (if applicable):

@vanosg vanosg added this to the v1.10.2 milestone Sep 6, 2026
@vanosg
vanosg merged commit d93dbd7 into develop Sep 6, 2026
26 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5fe6e52e84

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/mod/webui.mod/webui.c
Comment on lines +73 to +76
#ifdef EGG_PATCH
stealth_telnets ? "nginx/1.28.0" : "Eggdrop/" EGG_STRINGVER "+" EGG_PATCH);
#else
stealth_telnets ? "nginx/1.28.0" : "Eggdrop/" EGG_STRINGVER);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve nginx/1.28.1 in the stealth branch

When stealth_telnets is enabled, both conditional branches now emit nginx/1.28.0, silently reverting the deliberate 1.28.01.28.1 update from commit 7d160319 for every 404 and file response. The EGG_PATCH guard only needs to vary the Eggdrop banner; retain nginx/1.28.1 in both arms so this stable-build fix does not also change the externally visible stealth fingerprint.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants