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::setAddress cannot be used more than once for an object #1150

Closed
sgourdas opened this issue Oct 9, 2024 · 2 comments · Fixed by #1151
Closed

Server::setAddress cannot be used more than once for an object #1150

sgourdas opened this issue Oct 9, 2024 · 2 comments · Fixed by #1151
Assignees
Milestone

Comments

@sgourdas
Copy link
Collaborator

sgourdas commented Oct 9, 2024

No description provided.

@kelson42
Copy link
Collaborator

kelson42 commented Oct 9, 2024

@sgourdas I was not aware that many IPs could be set! This is not possible using Kiwix Server at least... is that normal? Is the kiwix-serve command line option mgmt not aligne with what can do the libkiwix?

@sgourdas
Copy link
Collaborator Author

sgourdas commented Oct 9, 2024

@sgourdas I was not aware that many IPs could be set! This is not possible using Kiwix Server at least... is that normal? Is the kiwix-serve command line option mgmt not aligne with what can do the libkiwix?

@kelson42 no, multiple user defined ips cannot be set. This has to do with setting the ip over and over on the same server object, but the old ip not being cleared up, ending up on misalignment. This is now fixed by resetting the m_addr field, before setting the new ip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: DONE
Development

Successfully merging a pull request may close this issue.

2 participants