Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@stelfrag
Copy link
Collaborator

@stelfrag stelfrag commented Aug 9, 2025

Summary
  • Add _web_listen_port host label
    • Will be '0' if mode = none

return 1;

char default_port_str[16];
uint16_t default_port = (web_server_mode == WEB_SERVER_MODE_NONE) ? 0 : web_server_get_default_port();
Copy link
Member

Choose a reason for hiding this comment

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

This is wrong if bind to port != default port.

With the following config:

[web]
	bind to = 10.10.10.20:19997 10.10.10.20:19998

I get

"host_labels": {
"_web_listen_port": "19999",

Is that easy to fix? If yes, let's do it now. Otherwise, let's add TODO.

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